Data update

This commit is contained in:
Ingy dot Net 2024-04-19 16:56:29 -07:00
parent 0df55f9f24
commit aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions

View file

@ -1,15 +1,15 @@
val .wordsets = [
w/the that a/,
w/frog elephant thing/,
w/walked treaded grows/,
w/slowly quickly/,
fw/the that a/,
fw/frog elephant thing/,
fw/walked treaded grows/,
fw/slowly quickly/,
]
val .alljoin = f(.words) for[=true] .i of len(.words)-1 {
val .alljoin = fn(.words) for[=true] .i of len(.words)-1 {
if last(.words[.i]) != first(.words[.i+1]): break = false
}
# .amb expects 2 or more arguments
val .amb = f(...[2 .. -1] .words) if(.alljoin(.words): join " ", .words)
val .amb = fn(...[2 .. -1] .words) if(.alljoin(.words): join " ", .words)
writeln join "\n", filter(mapX(.amb, .wordsets...))
writeln join "\n", filter mapX .amb, .wordsets...