Skip to content

Instantly share code, notes, and snippets.

@colomon
Created June 15, 2010 11:31
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 colomon/438996 to your computer and use it in GitHub Desktop.
Save colomon/438996 to your computer and use it in GitHub Desktop.
> say 1...10
12345678910
> say (1...10)[3]
4
> say (1...10)[0..3]
5
> say (1...10)[0..4]
6
> say (1...10)[1..4]
5
> say (1...10)[0,1,2,3]
1234
> say (1...10)[0...3]
0123
> say (1...10)[0...3]
0123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment