Skip to content

Raku (aka Perl 6) "Junctions" are neat. Here they are for Python.

License

Notifications You must be signed in to change notification settings

atpalmer-python/rakujunc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 junc

    assert junc.one(*range(1, 31)) == 3     # Passes
    assert junc.any('a', 'b', 'c') == 'a'   # Passes

    if junc.any(1, 2) + 1 == 3:
        print('yes')  # prints 'yes'

About

Raku (aka Perl 6) "Junctions" are neat. Here they are for Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages