Hacker News new | ask | show | jobs
by judk 4378 days ago
Is it true that this is O(1) in Haskell? (Making up function names but you get the idea)

    (fmap a function anArray) `get` n
?

How does fmap construct its value?

1 comments

How fmap constructs it's value depends on how that type implements the functor typeclass I believe.