Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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)`



I don't think writing a function called `float` that apparently accepts arrays as an argument is very elegant at all




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: