Packages

Provides a stream of English words. Based off of the npm package word-list.

Current section

Files

Jump to
word_list lib word_list.ex
Raw

lib/word_list.ex

defmodule WordList do
def getStream!() do
Application.app_dir(:word_list, "/priv/words.txt")
|> File.stream!()
|> Stream.map(fn x -> String.trim(x) end)
end
end