role Positional

Object that supports looking up values by index

role Positional { ... }

Role for objects which support indexing them using postcircumfix:«[ ]» (usually list-like objects). Example types with Positional role include List, Array, Range, and Buf.


method of

method of()

Returns the type constraint for elements of the positional container. Defaults to Mu.

Type graph

Type relations for Positional
perl6-type-graph Positional Positional Mu Mu Any Any Any->Mu Cool Cool Cool->Any Iterable Iterable List List List->Positional List->Cool List->Iterable Range Range Range->Positional Range->Cool Range->Iterable Stringy Stringy Blob Blob Blob->Positional Blob->Stringy Uni Uni Uni->Positional Uni->Any Uni->Stringy Slip Slip Slip->List Backtrace Backtrace Backtrace->List Array Array Array->List NFKC NFKC NFKC->Uni NFC NFC NFC->Uni NFKD NFKD NFKD->Uni NFD NFD NFD->Uni Buf Buf Buf->Blob

Stand-alone image: vector