Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Not an award winning solution, but this is my first time code-golfing, so I'm not exactly sure of what I'm doing.
I tried to use pattern matching, but that got me over 58.
#OCaml 47#
let m n=List.nth["1";"i";"-1";"-i"](n mod 4);;
Not an award winning solution, but this is my first time code-golfing, so I'm not exactly sure of what I'm doing.
I tried to use pattern matching, but that got me over 58.
OCaml 47
let m n=List.nth["1";"i";"-1";"-i"](n mod 4);;
Not an award winning solution, but this is my first time code-golfing, so I'm not exactly sure of what I'm doing.
I tried to use pattern matching, but that got me over 58.
Not an award winning solution, but this is my first time code-golfing, so I'm not exactly sure of what I'm doing.
I tried to use pattern matching, but that got me over 58.