タグ

2017年1月26日のブックマーク (1件)

  • vittorio romeo's website

    As I mentioned in my previous article many features introduced in the latest C++ standards allow functional patterns to thrive in your codebase. Two ideas from that programming paradigm that I really like are currying and partial application. In this article we’re going to: Introduce and briefly explain the two aforementioned concepts. Write a generic constexpr zero-overhead curry function in C++1

    vittorio romeo's website
    Nnwww
    Nnwww 2017/01/26
    zero-overheadカリー関数.核となるラムダ式をキープしつつ外環境のパラメータパックとその型だけを再帰で育て,nullary時にパラメータパックのapplyで発火する.禍々しい型に対し流麗な再帰だが,何かのコンビネータ?