That'd be improper. It is a perfectly sane thing for the module user to get back the list of useable cards and not for use in a boolean test. If you want to do a boolean test then the user should create the disjunction. Heck, do that right now in p5 if all you want is some equality tests: eqany().
if ( eqany( 'foo', available_cards() ) ) { ... sub eqany { $_[0] eq $_ && return 1 for $_[1] .. $_[$#_]; 0 }
In reply to Re: Returning a Junction
by diotalevi
in thread Returning a Junction
by hardburn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |