Guest User

Untitled

a guest
Nov 21st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. use Modo;
  2.  
  3. enum Bool => ( 'True:1', 'False:0' );
  4.  
  5. Method->new(sub { return 3 })
  6. ->push(to => 'Bool', as => 'Maybe');
  7.  
  8. say Bool->Maybe; # 3
Add Comment
Please, Sign In to add comment