Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Amb/Egison/amb-1.egison
Normal file
7
Task/Amb/Egison/amb-1.egison
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
; We don't need 'amb' in the code since pattern-matching of Egison automatically do backtracking.
|
||||
(match-all {{"the" "that" "a"} {"frog" "elephant" "thing"} {"walked" "treaded" "grows"} {"slowly" "quickly"}} (list (multiset string))
|
||||
[<cons <cons (& <snoc $c_1 _> $w_1) _>
|
||||
(loop $i [2 $n]
|
||||
<cons <cons (& <cons ,c_(- i 1) <snoc $c_i _>> $w_i) _> ...>
|
||||
<nil>)>
|
||||
(map (lambda [$i] w_i) (between 1 n))])
|
||||
1
Task/Amb/Egison/amb-2.egison
Normal file
1
Task/Amb/Egison/amb-2.egison
Normal file
|
|
@ -0,0 +1 @@
|
|||
{{"that" "thing" "grows" "slowly"}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue