ABC words: Difference between revisions

m
m (Automated syntax highlighting fixup (second round - minor fixes))
Line 3,003:
 
=={{header|Vlang}}==
<syntaxhighlight lang="vlang">import os
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.splitsplit_into_lines('\n') {
if word.contains('a') && word.index_any('a') < word.index_any('b') && word.index_any('b') < word.index_any('c') {
&& word.index_any('a') < word.index_any('b')
&& word.index_any('b') < word.index_any('c') {
text += count++.str() + ': $word \n'
}
291

edits