Talk:Elm (programming language): Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
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:
 
<sourcesyntaxhighlight lang="haskell">
map : (a -> b) -> List a -> List b
map f xs = case xs of
(y::ys) -> (f y) :: (map f ys)
[] -> []
</syntaxhighlight>
</source>
 
:: I agree.