Skip to content

Instantly share code, notes, and snippets.

@disnet
Created October 8, 2012 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save disnet/3855533 to your computer and use it in GitHub Desktop.
Save disnet/3855533 to your computer and use it in GitHub Desktop.
conspair
macro conspair {
case [$head] => { [$head] }
case [$head $tail ...] => {
[$head, conspair [$tail ...]]
}
}
conspair [1 2 3 4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment