Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Integer-comparison/ReScript/integer-comparison.re
Normal file
11
Task/Integer-comparison/ReScript/integer-comparison.re
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
let my_compare = (a, b) => {
|
||||
if a < b { "A is less than B" } else
|
||||
if a > b { "A is greater than B" } else
|
||||
if a == b { "A equals B" }
|
||||
else { "cannot compare NANs" }
|
||||
}
|
||||
|
||||
let a = int_of_string(Sys.argv[2])
|
||||
let b = int_of_string(Sys.argv[3])
|
||||
|
||||
Js.log(my_compare(a, b))
|
||||
Loading…
Add table
Add a link
Reference in a new issue