エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Is there a splat operator in Elixir?
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Is there a splat operator in Elixir?
defmodule UnixCommands do alias Porcelain.Result def run(command, *opts) do %Result{out: output, ... defmodule UnixCommands do alias Porcelain.Result def run(command, *opts) do %Result{out: output, status: _} = Porcelain.exec(command, [opts]) IO.puts output end end Is there a splat operator equivalent, such as *opts, in Elixir? Is there is way to pass multiple options, instead of a list of options, to the exec function as arguments?

