Skip to main content

Scala-inspired data structures for Python

Project description

scalaps

Scala-inspired data structures for Python

Example:

from scalaps import ScSeq

(ScSeq(range(10))
 .map(lambda x: x+3)
 .filter(lambda x: x%2==0)
 .group_by(lambda x: x%3)
 .items()
 .for_each(print))

Output:

(1, ScList([4, 10]))
(0, ScList([6, 12]))
(2, ScList([8]))

Very much a work in progress. Expect major changes as the library evolves.

I'd very match appreciate other people's input, so feel free to submit a PR.

Contact: Matt Hagy matthew.hagy@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scalaps, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size scalaps-0.0.1-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size scalaps-0.0.1.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page