The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
package t::Context::Sensitive;
use strict;

use MooseX::ComposedBehavior -compose => {
  method_name  => 'gather_either',
  sugar_name   => 'add_either',
  also_compose => 'instance_either',
  compositor   => sub { return wantarray ? (results => $_[1]) : $_[1] },
};

1;