ЗП
Size: a a a
ЗП
ЗП
| comp | VM | t |
| ---------------------- | --------------- | ----- |
| ghc 8.2.2 (O2) llvm 6 | stg ghc x64 | 7 |
| eta 0.0.9b1 | JRE 1.8.0 | 19 |
| ghcjs-0.2.1_ghc-8.0.1 | node v7.10.0 V8 | 38 |
| clean | abc | 40 |
| scala 2.12.1 | JRE 1.8.0 | 43 |
| clean (M&S) | abc | 60 |
| ocaml 4.04 flambda O3 | x64 | 72 |
| ocaml 4.04 | x64 | 84 |
| hastec + closure comp. | node V8 | 120 |
| f# 4.0 | clr 4.6.1 x64 | 227 |
| frege (O) | jvm 1.8 | 490 |
| hugs | | 9430 |
| idris 0.99 | x64 | 54308 |
l
к
к
ЗП
ЗП
ЗП
к
к
к
ЗП
к
Aq
ЗП
iterate
наiterate' :: forall a. (a -> a) -> a -> L.List a
iterate' f x = x L.: (Z.defer \_ -> iterate' f (f x))
ЗП
L - Data.List.Lazy
Z - Control.Lazy
VY