remove double input parsing function
This commit is contained in:
parent
859f324b89
commit
6ca74d2711
8
main.jl
8
main.jl
@ -17,14 +17,6 @@ function readInput(filter=(x->true))
|
|||||||
return sort(words)
|
return sort(words)
|
||||||
end
|
end
|
||||||
|
|
||||||
function readInput2()
|
|
||||||
words = Vector{String}()
|
|
||||||
for line in eachline("wordlist-german.txt")
|
|
||||||
push!(words, line)
|
|
||||||
end
|
|
||||||
return sort(words)
|
|
||||||
end
|
|
||||||
|
|
||||||
function longest()
|
function longest()
|
||||||
words = readInput2()
|
words = readInput2()
|
||||||
maxLength = maximum(length, words)
|
maxLength = maximum(length, words)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user