source:
to-imperative/trunk/samples/perm.rf
@
2357
Last change on this file since 2357 was 2357, checked in by yura, 14 years ago | |
---|---|
|
|
File size: 192 bytes |
Line | |
---|---|
1 | $use StdIO; |
2 | |
3 | $func Perm (e) (e) = ; |
4 | |
5 | Perm (e1) (e2) = |
6 | { |
7 | e2 : \{ |
8 | ea tx eb, |
9 | <Perm (e1 tx) (ea eb)>, |
10 | $fail; |
11 | = |
12 | <PrintLN e1> |
13 | ; |
14 | };; |
15 | }; |
16 | |
17 | Main = <Perm () ('12345')>; |
Note: See TracBrowser
for help on using the repository browser.