Created
July 9, 2018 09:26
-
-
Save eyeccc/868450b630cec81f66d0f41f893e3f12 to your computer and use it in GitHub Desktop.
multiple if-else in reasonml
This file contains 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
let myObj = Js.Dict.empty(); | |
if (1 == 2) { | |
Js.Dict.set(myObj, "title", "myTitle"); | |
}; | |
if (true == true) { | |
Js.Dict.set(myObj, "id", 123); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment