Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
woocommerce-multilingual
/
vendor
/
otgs
/
installer
/
includes
/
utilities
/
FP
/
Traits
:
Pointed.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace OTGS\Installer\FP\Traits; use function OTGS\Installer\FP\curryN; trait Pointed { /** * of :: a -> M a * * Curried function that returns an instance of the derived class * * @param mixed $value (optional) * * @return mixed|callable */ public static function of( $value = null ) { $of = function ( $value ) { return new static( $value ); }; return call_user_func_array( curryN( 1, $of ), func_get_args() ); } }