Skip to content

Instantly share code, notes, and snippets.

@gavri
Created September 7, 2013 17:58
Show Gist options
  • Save gavri/6477749 to your computer and use it in GitHub Desktop.
Save gavri/6477749 to your computer and use it in GitHub Desktop.
split n = [ceil half, floor half]
where half = n / 2
incomplete x n = Bin x (incomplete x first) (incomplete x second)
where let (first, second) = split n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment