Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
15
Task/Power-set/Refal/power-set.refal
Normal file
15
Task/Power-set/Refal/power-set.refal
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
$ENTRY Go {
|
||||
= <Prout '[A B C D]:' <Powerset A B C D>>
|
||||
<Prout '[]:' <Powerset>>
|
||||
<Prout '[()]:' <Powerset ()>>;
|
||||
};
|
||||
|
||||
Powerset {
|
||||
= ();
|
||||
e.X t.I, <Powerset e.X>: e.F = e.F <Append t.I e.F>;
|
||||
};
|
||||
|
||||
Append {
|
||||
t.I = ;
|
||||
t.I (e.X) e.Y = (e.X t.I) <Append t.I e.Y>;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue