In Haskell, you can write
f x@(a, b, c) = x
Does Elm have an equivalent of this?
Yes, Elm uses the ML variant of that syntax, which is a postfix as name
instead of Haskell's prefix name@
:
f ((a, b, c) as x) = x
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With