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

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?



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




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

Search: