Last active
December 29, 2015 08:09
-
-
Save kfigiela/7641560 to your computer and use it in GitHub Desktop.
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
%setA set < A B C > | |
%setB set < X Y > | |
%setC_relation set[2] < | |
X A | |
X B | |
Y C | |
> |
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
#!/usr/bin/cmpl | |
%data test.cdat | |
parameters: | |
echo setA; | |
echo setB; | |
{b in setB: | |
setC[b] := set{[bi, a] in setC_relation, b = bi : a }; | |
} | |
echo "setC[X] "; | |
echo setC["X"]; | |
echo "setC[Y] "; | |
echo setC["Y"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment