LoginSignup
2
0

More than 1 year has passed since last update.

paiza.ioでelixir その104

Posted at

概要

paiza.ioでelixirやってみた。
練習問題やってみた。

練習問題

10を与えて、[10]を、パイプラインでプリントせよ。

サンプルコード

10
|> to_string
|> String.split(" ")	
|> Enum.map(fn x -> 
	{v, _} = Integer.parse(x)
	v
end)
|> IO.inspect
|> Enum.map(fn x -> 
	IO.puts x
end)

実行結果

'\n'
10

成果物

以上。

2
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
2
0