Skip to content

Commit 66b49f8

Browse files
committed
Add :123abc form to Pair description
1 parent 37999cd commit 66b49f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/Language/terms.pod6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,19 @@ These forms produce regex literals. See L<Quoting Constructs|/language/quoting>.
7171
:identifier($value)
7272
:identifier['val1', 'val2']
7373
:identifier{key1 => 'val1', key2 => 'value2'}
74+
:valueidentifier
7475
:$item
7576
:@array
7677
:%hash
7778
:&callable
7879
7980
L<Pair> objects can be created either with C<< infix:«=>» >> (which
8081
auto-quotes the left-hand side if it is an identifier), or with the various
81-
colon-pair forms. Those always start with a colon and then are followed
82+
colon-pair forms. Those almost always start with a colon and then are followed
8283
either by an identifier or the name of an already existing variable (whose
8384
name without the sigil is used as the key and value of the variable is used
84-
as the value of the pair).
85+
as the value of the pair). There is a special form where an integer value
86+
is immediately after the colon and the key is immediately after the value.
8587
8688
In the identifier form of a colon-pair, the optional value can be any
8789
circumfix. If it is left blank, the value is C<Bool::True>. The value of

0 commit comments

Comments
 (0)