#!/usr/bin/env elixir defmodule Nemui do @nemui ~w(ね む い) def nemui(acc \\ "") def nemui("いむね" <> _ = acc) do IO.puts acc |> String.reverse end def nemui(acc) do nemui(zzz() <> acc) end def zzz() do @nemui |> Enum.take_random(1) |> List.first end end Nemui.nemui()