In Perl 6, C<< => >> is a fully-fledged anonymous object constructor --
like C<[...]> and C<{...}>. The objects it constructs are called "pairs"
and they consist of a key (the left operand of the C<< => >>), and a value
(the right operand).

Can pairs also be used to create linked lists?

 my $x = 1=>2=>3=>4

 $x.key   = 1
 $x.value = 2=>3=>4

--
osfameron

Reply via email to