for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace loophp\fpt;
use Closure;
use loophp\fpt\Contract\FPTInterface;
* @psalm-immutable
final class FPT implements FPTInterface
{
* @pure
public static function arg(): Closure
return Arg::of();
}
public static function args(): Closure
return Args::of();
public static function compose(): Closure
return Compose::of();
public static function current(): Closure
return Current::of();
public static function curry(): Closure
return Curry::of();
public static function end(): Closure
return End::of();
public static function filter(): Closure
return Filter::of();
public static function flip(): Closure
return Flip::of();
public static function fold(): Closure
return Fold::of();
*
* @template T
* @return Closure(T): T
public static function identity(): Closure
return Identity::of();
* @template TKey
* @template U
* @return Closure(callable(T, TKey, iterable<TKey, T>): U)
public static function map(): Closure
return Map::of();
public static function nary(): Closure
return Nary::of();
* @return Closure(callable(T...): U): Closure(mixed): bool
public static function not(): Closure
return Not::of();
public static function operator(): Closure
return Operator::of();
public static function reduce(): Closure
return Reduce::of();
public static function reduction(): Closure
return Reduction::of();
public static function thunk(): Closure
return Thunk::of();
public static function uncurry(): Closure
return Uncurry::of();
public static function wrap(): Closure
return Wrap::of();