Skip to content

Instantly share code, notes, and snippets.

@pedromenezes
Created December 27, 2009 01:16
Show Gist options
  • Save pedromenezes/264108 to your computer and use it in GitHub Desktop.
Save pedromenezes/264108 to your computer and use it in GitHub Desktop.
range(N) -> range([N-1], N-2).
range(Lista, -1) -> Lista;
range(Lista, N) -> range([N] ++ Lista, N-1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment