Tarsana is an open source library written by Amine Ben Hammou and is available on GitHub for download. It is inspired from Ramda JS, a functional programming library for JavaScript. It does not have any dependencies and has more than 100 predefined functions to use for different purposes. Functions in FP are spread over different modules and there are several modules such as functions, list, object, string, math, operators, and common. Tarsana can be downloaded from GitHub (https://github.com/Tarsana/functional) or can be installed via composer.
composer require Tarsana/functional
Once the library is downloaded, we have to use it by importing the Tarsana\Functional namespace, just like the following code:
use Tarsana\Functional as F;
One of the interesting features of Tarsana is that we can convert any of our existing functions to a curried function...