develooper Front page | perl.perl6.language | Postings from April 2005

junctions as indicies

Thread Next
David Christensen
April 18, 2005 15:53
junctions as indicies
Message ID:
I'm looking in S09, and reading about junctions.  It seems to me that 
if we have a junction $j which we use to index into an array or a hash, 
it should DWIM and return a junction of the corresponding values.



$u = @ar[$j];       # 2|3|4
$v = %hash{$k}; # 1|7

Does this make sense to others?


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About