NAME ^

src/classes/Mapping.pir - Perl 6 hash class and related functions

Methods ^

Methods ^

fmt
 our Str multi Mapping::fmt ( Str $format, $separator = "\n" )
Returns the invocant mapping formatted by an implicit call to .fmt on every pair, joined by newlines or an explicitly given separator.
iterator()
keys()
Returns keys of hash as a List
kv (method)
Returns elements of hash as array of Pair(key, value)
list()
Return invocant as a List of Pairs.
pairs (method)
Returns elements of hash as array of Pairs
perl()
Return perl representation of the invocant.
reverse
values()
Returns values of hash as a List

Coercion methods ^

Scalar
When we're going to be stored as an item, become a Hash and return a Perl6Scalar with it.
Str
Stringification of a Mapping

Private methods ^

!flatten()
Flatten the invocant, as in list context.


parrot