News for hackers. Stuff that matters.
Re:The Janet Language by tmtvl on Saturday February 18, 2023 @11:08AM (#34847927)
Raku also has map and grep methods for collections, so it could be written as...

  my @sink = @source.map({...}).grep({...}).sort;
Which also makes multithreading the operation easy:

  my @sink = @source.hyper.map({...}).grep({...}).sort.list;
That said, I think the operator you're looking for is the feed operator, ==>:

  my @sink;
  @source ==> map {...} ==> grep {...} ==> sort ==> @sink;
It also has the corresponding reverse, <==, because why not. The docs* mention that ==> may at some point do automatic parallelization, but I don't know what the status of that feature is.

* https://docs.raku.org/routine/==%3E

Re:The Janet Language by mst on Sunday February 19, 2023 @08:41AM (#34857472)
> That said, I think the operator you're looking for is the feed operator, ==>

Yes, yes it was.

Clarifications and elaborations much appreciated.