These three implementations are equivalent.