Friendly sequences made in Python with :love:
Project description
Friendly Sequences
Inspired by Scala Sequence class [1]. Good typing support.
Examples
from friendly_sequences import Seq
assert (
Seq((1, 2))
.zip(Seq((3, 4)))
.flat_map(lambda x: x)
.sort()
.map(str)
.to_tuple()
) == ("1", "2", "3", "4")
[1] https://alvinalexander.com/scala/seq-class-methods-examples-syntax/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file friendly_sequences-1.0.tar.gz
.
File metadata
- Download URL: friendly_sequences-1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.14.0 CPython/3.10.12 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb4e0ded67a70506405d9c8d4308078aee98b295435be918e6998757a254e073 |
|
MD5 | 52b273835dcc7b4acacbee43ad881720 |
|
BLAKE2b-256 | b1824ac65087bc70e7fa67413a00c934634e6cec1355c759b9637f8ab724eb84 |
File details
Details for the file friendly_sequences-1.0-py3-none-any.whl
.
File metadata
- Download URL: friendly_sequences-1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.14.0 CPython/3.10.12 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 582b17d062d6406a044dde34a4146a9d14c67b0de55b94833aa3d3a67eaa5bc7 |
|
MD5 | a39dbd7c3b325134b14ac92f26c91b87 |
|
BLAKE2b-256 | d63a30dd3ef1689320bf291501c7cf4bf998d01afa5a6523ea81115995477d3c |