Help for this page

Select Code to Download


  1. or download this
    subtype 'MyMatch',
          as 'Str',
    ...
        isa => 'Maybe[MyMatch]',
        required => 0
    );
    
  2. or download this
    The Maybe[`a] type deserves a special mention. Used by itself, 
    it doesn't really mean anything (and is equivalent to Item). 
    When it is parameterized, it means that the value is either undef 
    or the parameterized type. So Maybe[Int] means an integer or undef.