From 32b3be421fec3c9a09ea8e9ae8d71b9c92ee4a99 Mon Sep 17 00:00:00 2001 From: Brian Duggan Date: Fri, 3 Mar 2017 16:15:29 -0500 Subject: [PATCH] off by 1 --- doc/Language/py-nutshell.pod6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/Language/py-nutshell.pod6 b/doc/Language/py-nutshell.pod6 index d4e568ef2..c18849406 100644 --- a/doc/Language/py-nutshell.pod6 +++ b/doc/Language/py-nutshell.pod6 @@ -209,7 +209,11 @@ Perl 6 # 4, 16 since each loop iteration has a lexically scoped x, Note that C<^N) is like C. Similarly, -C works like C. +C works like C (a list from N +to M - 1). C 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.