<?php

class Curry {

  static function curry2(callable $f) {
    return function ($a) use ($f) { 
      return function ($b) use ($f, $a) { 
        return $f($a, $b); 
      }; 
    };
  }

  static function curry3(callable $f) {
    return function ($a) use ($f) { 
      return function ($b) use ($f, $a) { 
        return function ($c) use ($f, $a, $b) { 
          return $f($a, $b, $c); 
        };
      }; 
    };
  }

}

Add boilerplate utils for currying.
Add boilerplate utils for currying.
