Teacup rim text: Difference between revisions

m
m (→‎{{header|Wren}}: Minor tidy)
 
(2 intermediate revisions by one other user not shown)
Line 1,805:
 
=={{header|Ruby}}==
"woordenlijst.txt" is a Dutch wordlist. IIt has 413125 words > 2 chars and takes about atwo minuteminutes.
<syntaxhighlight lang="ruby">lists = ["unixdict.txt", "wordlist.10000", "woordenlijst.txt"]
 
Line 1,992:
{{libheader|Wren-str}}
{{libheader|Wren-sort}}
<syntaxhighlight lang="ecmascriptwren">import "io" for File
import "./str" for Str
import "./sort" for Find
 
var readWords = Fn.new { |fileName|
9,485

edits