Scala-inspired data structures for Python
See blog post, Introducing scalaps: Scala-inspired data structures for Python to learn about using this library.
A functional, object-oriented approach for working with sequences and collections. Also similar to Java Streams. Hope you find they simplify your code by providing a plethora of common algorithms for working with sequences and collections.
import scalaps as sc (sc.Seq(range(10)) .map(lambda x: x+3) .filter(lambda x: x%2==0) .group_by(lambda x: x%3) .items() .for_each(print))
(1, List([4, 10])) (0, List([6, 12])) (2, List())
See examples/ directory for additional examples of using scalaps.
Very much a work in progress. Expect major changes as the library evolves. I'd appreciate other people's input, so feel free to submit a PR.
Contact: Matt Hagy email@example.com
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size scalaps-0.0.2-py3-none-any.whl (5.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size scalaps-0.0.2.tar.gz (4.9 kB)||File type Source||Python version None||Upload date||Hashes View|