> if ( all { $_->($file) } \&writable, \&directory ) { ...
Is that the PDL C<all>?
With the superpositional C<all> it would be:
if ( all(\&writable, \&directory)->($file) ) { ...
:-)
Hmmmmm. Maybe C<writable>, C<directory>, etc. could return objects
that equate to a filename *only* if the original predicate is true
for that file. Then one could write:
if ( $file == all(writable, directory) ) { ...
as well as:
@readable = eigenstates(any(@file) == readable));
Bwah-ha-ha-ha!
Damian
- Perl6Storm: Intent to RFC #0101 Adam Turoff
- Re: Perl6Storm: Intent to RFC #0101 Ariel Scolnicov
- Re: Perl6Storm: Intent to RFC #0101 Nathan Wiger
- Re: Perl6Storm: Intent to RFC #0101 John Porter
- Re: Perl6Storm: Intent to RFC #0101 Damian Conway
- Re: Perl6Storm: Intent to RFC #0101 Tom Christiansen
- Re: Perl6Storm: Intent to RFC #0101 Tom Christiansen
- Re: Perl6Storm: Intent to RFC #0101 Nathan Wiger
- Re: Perl6Storm: Intent to RFC #0101 Robert Mathews
- Re: Perl6Storm: Intent to RFC #0101 Russ Allbery
- Re: Perl6Storm: Intent to RFC #0101 Robert Mathews
- Re: Perl6Storm: Intent to RFC #... Russ Allbery
- Expunge "use English&q... Nathan Wiger
- Re: Expunge "use Engli... Adam Turoff
- Re: Expunge "use Engli... Robert Mathews
