Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let spin (n : int) : Move =
fun circle ->
let len = Array.length circle in
Array.append circle.[(len-n)..(len-1)] circle.[0..(len-n-1)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment