Skip to content

Instantly share code, notes, and snippets.

@tomshen
Created March 28, 2016 03:46
Show Gist options
  • Save tomshen/1e91b3e2c4a7751de67d to your computer and use it in GitHub Desktop.
Save tomshen/1e91b3e2c4a7751de67d to your computer and use it in GitHub Desktop.
Type the following into a SML/NJ REPL.
fun sml n j = (j+1, if n = j then j else j+1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment