PHPackages                             yuyat/curry - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yuyat/curry

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yuyat/curry
===========

Function does currying

v0.9.0(11y ago)413MITPHPPHP &gt;=5.3

Since Oct 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/yuya-takeyama/curry)[ Packagist](https://packagist.org/packages/yuyat/curry)[ RSS](/packages/yuyat-curry/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

yuyat\\curry
============

[](#yuyatcurry)

Function does currying.

Virtually, it transforms functions takes multiple arguments into nested function each takes one argument like below.

```
f(x, y, z) => f(x)(y)(z)

```

And it can be applicated partially. All of below means same.

```
f(x)(y)(z)
f(x)(y, z)
f(x, y)(z)
f(x, y, z)

```

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

```
