LoginSignup
1
0

paiza.ioでelixir その286

Last updated at Posted at 2024-04-24

概要

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


実行結果

パタトクカシーー

成果物

以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0