Skip to content

Commit

Permalink
off by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bduggan committed Mar 3, 2017
1 parent f01ba07 commit 32b3be4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/Language/py-nutshell.pod6
Expand Up @@ -209,7 +209,11 @@ Perl 6
# 4, 16 since each loop iteration has a lexically scoped x,
Note that C<^N) is like C<range(N)>. Similarly,
C<N..M> works like C<range(N,M)>.
C<N..^M> works like C<range(N,M)> (a list from N
to M - 1). C<N..M> is a list from N to M. The
C<^> before or after the C<..> indicates that the
beginning or ending endpoint of the list (or both)
should be excluded.
Also, C<> is a cute way of writing C<$x ** 2> (which also
works fine); the unicode superscript 2 squares a number.
Expand Down

0 comments on commit 32b3be4

Please sign in to comment.