I have been in desperate need for some sane collections processing in this python thing that everyone uses .. for collections processing! This is the third library I will have looked at in serious depth - the other two being
Pipe infix notation https://julienpalard.github.io/Pipe/
fluentpy https://github.com/dwt/fluent
Those are both useful libraries but with caveats:
Pipe requires a lot of additional coding to be reusable
fluentpy feels just a tad on the arcane side.
Between those two fluentpy does closer to what I need out of the box and the author has been working on it / active project. But I am still looking for the magic bullet. Let's check this one out as well!
Note I had posted to SOF on this whole topic - and specifically comparing to scala just over a year ago: https://stackoverflow.com/a/49018515/1056563
The use case provided looks quite a bit like the first paragraph on your README !
val a = ((1 to 50)
.map(_ * 4)
.filter( _ <= 170)
.filter(_.toString.length == 2)
.filter (_ % 20 == 0)
.zipWithIndex
.map{ case(x,n) => s"Result[$n]=$x"}
.mkString(" .. "))
let's see if I can translate the above to scalaps and then add to that evaluation
I have been in desperate need for some sane collections processing in this python thing that everyone uses .. for collections processing! This is the third library I will have looked at in serious depth - the other two being
Those are both useful libraries but with caveats:
Piperequires a lot of additional coding to be reusablefluentpyfeels just a tad on the arcane side.Between those two
fluentpydoes closer to what I need out of the box and the author has been working on it / active project. But I am still looking for the magic bullet. Let's check this one out as well!Note I had posted to SOF on this whole topic - and specifically comparing to scala just over a year ago: https://stackoverflow.com/a/49018515/1056563
The use case provided looks quite a bit like the first paragraph on your README !
let's see if I can translate the above to scalaps and then add to that evaluation