Data update
This commit is contained in:
parent
07c7092a52
commit
61b93a2cd1
313 changed files with 6160 additions and 346 deletions
10
Task/Amb/Insitux/amb.insitux
Normal file
10
Task/Amb/Insitux/amb.insitux
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(function amb op res
|
||||
(filter #(= res (.. .. op args))
|
||||
(.. for vec (skip 2 args))))
|
||||
|
||||
(var safe= @(= (0 args)))
|
||||
(var predicate (comp vec (map (juxt 0 -1)) flatten (skip 1) (partition 2) (map (.. safe=)) (.. and)))
|
||||
|
||||
(amb predicate true ["the" "that" "a"] ["frog" "elephant" "thing"] ["walked" "treaded" "grows"] ["slowly" "quickly"])
|
||||
|
||||
;returns [["that" "thing" "grows" "slowly"]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue