Skip to main content

No project description provided

Project description

# Gakp-pyfunk
A set of functional tools for python. It is supposed to have the same interface as Gakp-jsfunk and Gakp-lispfunk

## Example
```python
from pyfunk.combinators import compose
from pyfunk.collections import fmap
from pyfunk.functors.io import IO


def get_file(filename):
'''@sig get_file :: String -> IO String '''
def open_file():
with open(filename) as f:
return f.read()
return IO(open_file)


def get_tokens(str):
return str.split()


def get_lenght_of_tokens(tokens):
return len(tokens)

tokenLength = compose(fmap(get_lenght_of_tokens), fmap(get_tokens), get_file)
print(tokenLength('.gitignore').unsafeIO())
```

## Contributing
Anyone can contribute using the fork and pull model.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gakp_pyfunk-0.4.1-py2.py3-none-any.whl (23.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gakp_pyfunk-0.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gakp_pyfunk-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7835bdb1eca9919f6c20dc7b3a72b272dced806382f93c72594ea3ed02f94f83
MD5 330045dfa35c8ed28fcce30f591dab64
BLAKE2b-256 c87771a1cf79d078dd37b39b791313326a4541d0c30950d144cb5de8d0ac79cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page