Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
enriquto
on March 24, 2023
|
parent
|
context
|
favorite
| on:
Fascination of Awk
> 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)`
nawgz
on March 24, 2023
[–]
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:
What about `float(integerlist)`