Does Elm have an expression that produces bottom/diverges, like Haskell's error
or Rust's unimplemented!()
?
e.g.
map : (a -> b) -> List a -> List b
map = unimplemented
Yes, Debug.crash
has the type String -> a
which you can use like this:
map : (a -> b) -> List a -> List b
map = Debug.crash "unimplemented"
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