引数が複数ある関数の一つを固定化して、引数が減った状態の関数にするのが、カリー化。何がうれしいか。引数を隠蔽できることがうれしい。同じ引数を毎度毎度入力するのはだるいから、固定化できる部分はカリー化で固定して、変動する部分は引数を入れて使うということなのかな。眠たいからサンプルコードは書かない。関数型言語はかっこいい。
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme