Python Forum

Full Version: Introducing scalaps: Scala-inspired data structures for Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
New library for working with collections and sequences using the library-provided, generic algorithms. Details in blog post, Introducing scalaps: Scala-inspired data structures for Python.

I'm curious what other people in the Python community think about this approach to working with sequences and collections. I've found scalaps to simplify my code, improve readability, and cut down on errors by leveraging the generic algorithms implemented in this library. I'd like to hear what other people think.

Very much a work in progress and I'd appreciate some feedback before I invest too much time into this library. Once we're happy with the API, I'll go ahead and clean this up, including developing robust tests and some more examples/documentation. Also, I welcome PRs if you have any ideas.

GitHub: https://github.com/matthagy/scalaps
PyPi: https://pypi.org/project/scalaps

Thanks for considering scalaps!
This looks interesting. Having done a decent amount of functional programming now (in Scala), I'm no longer as much a fan of comprehensions, preferring the method chaining you use in your example. I'll give it a try next time I get a chance.
I agree, looks interesting. I'll take a better look tomorrow morning.