F
Fredrik
Ruby (1.8.6) seems to be missing numeric conversion methods for
Arrays :
class Array
def to_f
self.map { |i| i.to_f }
end
end
(and the same for to_i)
Did somebody forget to include that? Surely there is no reason to
NOT have this method for the Array class.
/Fredrik
Arrays :
class Array
def to_f
self.map { |i| i.to_f }
end
end
(and the same for to_i)
Did somebody forget to include that? Surely there is no reason to
NOT have this method for the Array class.
/Fredrik