Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atpalmer-python/rakujunc
Raku (aka Perl 6) "Junctions" are neat. Here they are for Python.
https://github.com/atpalmer-python/rakujunc
library perl6 python raku
Last synced: 17 days ago
JSON representation
Raku (aka Perl 6) "Junctions" are neat. Here they are for Python.
- Host: GitHub
- URL: https://github.com/atpalmer-python/rakujunc
- Owner: atpalmer-python
- License: mit
- Created: 2019-04-20T01:18:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-05T06:04:42.000Z (over 4 years ago)
- Last Synced: 2024-11-02T14:42:05.835Z (2 months ago)
- Topics: library, perl6, python, raku
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python "Raku Junctions" (rakujunc)
An implementation in Python of the "Junctions" concept from the Raku language (previously called Perl 6).
Raku Junction docs:
https://docs.raku.org/type/Junction
## Examples
```
import rakujunc as juncassert junc.one(*range(1, 31)) == 3 # Passes
assert junc.any('a', 'b', 'c') == 'a' # Passesif junc.any(1, 2) + 1 == 3:
print('yes') # prints 'yes'
```