ABC words: Difference between revisions
m
→{{header|Vlang}}
Thundergnat (talk | contribs) m (Automated syntax highlighting fixup (second round - minor fixes)) |
|||
Line 3,003:
=={{header|Vlang}}==
<syntaxhighlight lang="vlang">
import os
fn main() {
Line 3,009 ⟶ 3,010:
mut text :=''
unixdict := os.read_file('./unixdict.txt') or {panic('file not found')}
for word in unixdict.
if word.contains('a')
&& word.index_any('a') < word.index_any('b')
&& word.index_any('b') < word.index_any('c') {
text += count++.str() + ': $word \n'
}
|