ABC words: Difference between revisions
Content added Content deleted
m (→{{header|Diego}}: Syntax on index brackets) |
|||
Line 1,173: | Line 1,173: | ||
with_file() |
with_file() |
||
()_read⟦{raw},unixdict.txt⟧_splitto(words,⟦\n⟧) |
()_read⟦{raw},unixdict.txt⟧_splitto(words,⟦\n⟧) |
||
(words)_if⟦[posA]<[posB]<[posC]⟧)_findto(posA,⟦a⟧) |
(words)_if⟦[posA]<[posB]<[posC]⟧)_findto(posA,⟦a⟧)_i⟪0⟫_findto(posB,⟦b⟧)_i⟪0⟫_findto(posC,⟦c⟧)_i⟪0⟫ |
||
?_(foundWords) |
?_(foundWords)_add⟦words⟪⟫⟧; |
||
; |
; |
||
; |
; |
||
Line 1,185: | Line 1,185: | ||
()_read⟦{raw},unixdict.txt⟧_splitto(words,⟦\n⟧) |
()_read⟦{raw},unixdict.txt⟧_splitto(words,⟦\n⟧) |
||
(words)_foreach(word) |
(words)_foreach(word) |
||
?_(word)_findto(posA,⟦a⟧) |
?_(word)_findto(posA,⟦a⟧)_i⟪0⟫; |
||
?_(word)_sliceto(foundA,⟦[posA]⟧) |
?_(word)_sliceto(foundA,⟦[posA]⟧) |
||
?_(foundA)_findto(posB,⟦b⟧) |
?_(foundA)_findto(posB,⟦b⟧)_i⟪0⟫; |
||
?_(foundA)_sliceto(foundB,⟦[posB]⟧) |
?_(foundA)_sliceto(foundB,⟦[posB]⟧) |
||
?_(foundB)_find⟦c⟧ |
?_(foundB)_find⟦c⟧ |