NAME ^

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

Methods ^

Scalar

When we're going to be stored as an item, become a Hash and return an ObjectRef to it.

hash()

Return invocant as a Hash

list()

Return invocant as a List of Pairs.

perl()

Return perl representation of the invocant.

kv (method)

Returns elements of hash as array of Pair(key, value)

pairs (method)

Returns elements of hash as array of Pairs

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.

reverse


parrot