Content deleted Content added
m Signing comment by 2806:106E:B:AA51:21CD:CEA5:1433:EC66 - "→Elm is an eager language: new section" |
m Replaced deprecated <source> tags with <syntaxhighlight> (via WP:JWB) |
||
Line 10:
The section about limitations is wrong. Elm does support higher-order functions. Therefore functions such as fold and map do exist. Compare http://package.elm-lang.org/packages/elm-lang/core/2.1.0/List or the following piece of valid code:
<
map : (a -> b) -> List a -> List b
map f xs = case xs of
(y::ys) -> (f y) :: (map f ys)
[] -> []
</syntaxhighlight>
:: I agree.
|