Created
July 11, 2017 00:04
-
-
Save PedroHLC/3bbb128e0355190931fbb8e258eca438 to your computer and use it in GitHub Desktop.
inline condition in Elm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?) : Bool -> ( a, a ) -> a | |
(?) cond ( ifTrue, ifFalse ) = | |
if cond then | |
ifTrue | |
else | |
ifFalse | |
(?) : a -> a -> ( a, a ) | |
(?) ifTrue ifFalse = | |
( ifTrue, ifFalse ) | |
infixr 8 ? | |
infixr 9 ? | |
text = True ? "HELLO" ¬ "WORLD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment