Questions tagged [feed-operator]

Feed operators allow you to take the result of one operation and pass it to the next (or previous in the case of a leftward feed operator).

Examples of feed operators in Perl 6

==> rightward feed operator

<== leftward feed operator

2 questions
8
votes
1 answer

Why is this Perl 6 feed operator a "bogus statement"?

I took this example from Day 10 – Feed operators of the Perl 6 2010 Advent Calendar with the slight change of .uc for the .ucfirst that's no longer there: my @rakudo-people = ; @rakudo-people ==>…
brian d foy
  • 129,424
  • 31
  • 207
  • 592
8
votes
1 answer

Can I return multiple Pairs from a map feeding into a hash?

I'm trying to create a hash that looks up by key or value. To look up both ways, I want the values to be keys (with values that are their keys). < H He > ==> map( { state $n = 0; $n++; $n => $_.Str, $_.Str => $n …
brian d foy
  • 129,424
  • 31
  • 207
  • 592