Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YES! THIS! #1

Open
javadba opened this issue Jun 2, 2019 · 0 comments
Open

YES! THIS! #1

javadba opened this issue Jun 2, 2019 · 0 comments

Comments

@javadba
Copy link
Contributor

javadba commented Jun 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant