Created
May 13, 2018 10:42
-
-
Save fdjones/e4b81597382b70bfe5b63d5bd36c8757 to your computer and use it in GitHub Desktop.
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
fun get_nth (xs : string list, n : int) | |
if n = 1 then hd xs | |
else get_nth (xs, n -1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment