Data update

This commit is contained in:
Ingy döt Net 2025-02-27 18:35:13 -05:00
parent 8e4e15fa56
commit 72eb4943cb
1853 changed files with 35514 additions and 9441 deletions

View file

@ -10,6 +10,6 @@ val alljoin = fn words: for[=true] i of len(words)-1 {
}
# amb expects 2 or more arguments
val amb = fn ...[2..] words: if alljoin(words) { join " ", words }
val amb = fn ...[2..] words: if alljoin(words) { join words, by=" " }
writeln join("\n", filter(mapX(amb, wordsets...)))
writeln join(mapX(wordsets..., by=amb) -> filter, by="\n")

View file

@ -13,7 +13,7 @@
(LAMBDA (K-SUCCESS) ; which we return possibles.
(CALL-WITH-CURRENT-CONTINUATION
(LAMBDA (K-FAILURE) ; K-FAILURE will try the next
(SET! FAIL K-FAILURE) ; possible expression.
(SET! FAIL (LAMBDA () (K-FAILURE 'anything-is-fine-here))) ; possible expression.
(K-SUCCESS ; Note that the expression is
(LAMBDA () ; evaluated in tail position
expression)))) ; with respect to AMB.