9 lines
193 B
Text
9 lines
193 B
Text
defmodule Log do
|
|
def show(offspring,i) do
|
|
IO.puts "Generation: #{i}, Offspring: #{offspring}"
|
|
end
|
|
|
|
def found([target|i]) do
|
|
IO.puts "#{target} found in #{i} iterations"
|
|
end
|
|
end
|