Y
Hacker News
new
|
ask
|
show
|
jobs
by
enriquto
1180 days ago
> I can't think of many more elegant ways to convert a list of ints to floats, in any language, than `[float(i) for i in integerlist]`.
What about `float(integerlist)`
1 comments
nawgz
1180 days ago
I don't think writing a function called `float` that apparently accepts arrays as an argument is very elegant at all
link