Skip to content

Comment on Data Science in Julia for Hackersparent

Comments

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?

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.