Hacker News new | ask | show | jobs
by ced 1917 days ago
What do you mean, "map values"? There is

    [sin(x) for x in vec]
    map(sin, vec)
    sin.(vec)
which are roughly equivalent? Is that what you're referring to?
1 comments

Don't forget the "lazy" version: (sin(x) for x in vec)