Created
May 13, 2018 10:26
-
-
Save fdjones/314008f02e32cffa37da4ea42b4cff0a 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 null x then 0 | |
else if n = 1 then hd xs | |
else 1 + get_nth (tl xs, n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment