2015-10-01から1ヶ月間の記事一覧
params = {a: "hello", b: "world"} def foo(a:, b:) puts a + b end foo(params) # => helloworld って出来るんだから、 a:, b: = params puts a + b # => helloworld って出来ないのかしらん?Ruby 2.2ではできないみたい たしかClojureにこんな機能があっ…
params = {a: "hello", b: "world"} def foo(a:, b:) puts a + b end foo(params) # => helloworld って出来るんだから、 a:, b: = params puts a + b # => helloworld って出来ないのかしらん?Ruby 2.2ではできないみたい たしかClojureにこんな機能があっ…