-
-
Save egisatoshi/3653998 to your computer and use it in GitHub Desktop.
Set cons of Egison from version 2.4.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> (test (match-all {0 1} (Set Integer) | |
[<cons $a_1 <cons $a_2 <cons $a_3 _>>> | |
{a_1 a_2 a_3}])) | |
{{0 0 0} {0 0 1} {0 1 0} {0 1 1} {1 0 0} {1 0 1} {1 1 0} {1 1 1}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment