paiza.ioでelixirやってみた。 練習問題、見つけたので、やってみた。
pc = "パトカー" tx = "タクシー" pc1 = String.codepoints(pc) tx1 = String.codepoints(tx) Enum.zip_with(pc1, tx1, fn x, y -> x <> y end) |> Enum.join |> IO.puts
パタトクカシーー
以上。
Register as a new user and use Qiita more conveniently