Ingo Blechschmidt wrote:
I remembered Damian saying that pick does not only work on junctions, but on arrays and hashes, too (and I even found his posting :): http://groups.google.com/groups?selm=420DB295.3000902%40conway.org).
Are the following assumptions correct? my $junc = 1|2|3; print $junc.pick; # "1", "2", or "3" print pick $junc; # same
my @array = <a b c>; print @array.pick; # "a", "b", or "c" print pick @array; # same
What does pick return on hashes? Does it return a random value or a
random pair? (I suppose returning a pair is more useful.)
Most likely a pair.
Now if I could only find some more time to work on S29. I've been making progress (slowly) on getting the string functions written up, but life seems to be conspiring against rapid progress.
-- Rod Adams