Skip to content
/ php-fp Public
forked from camspiers/php-fp

Functional Programming Helpers

Notifications You must be signed in to change notification settings

slifin/php-fp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Placeholder Support

This is a hacky fork which implements

$greeting = function($title,$firstname,$secondname){
	return $title.' '.$firstname.' '.$secondname;
};
$mrSmith = fp\curry($greeting,'mr',(new fp\Placeholder),'smith');
var_dump($mrSmith('barry'));//string(14) "mr barry string"

Don't use this fork as I consider it an experiement based off http://ramdajs.com/0.16/docs/#__ If you need placeholder like support I suggest using the original repo and this method: camspiers#2 (comment)

I have not run unit tests on this nor used it in production

About

Functional Programming Helpers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%