JFP 2.5.0
See the version list below for details.
dotnet add package JFP --version 2.5.0
NuGet\Install-Package JFP -Version 2.5.0
<PackageReference Include="JFP" Version="2.5.0" />
paket add JFP --version 2.5.0
#r "nuget: JFP, 2.5.0"
// Install JFP as a Cake Addin #addin nuget:?package=JFP&version=2.5.0 // Install JFP as a Cake Tool #tool nuget:?package=JFP&version=2.5.0
A language as a library borrowing concepts from Lisp and Haskell. JFP contains functions which allow for gentle adoption of functional programming ideas for developers who are new to the functional paradigm. JFP embraces the dynamic nature of Javascript while supporting safe data typing.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- isTuple - predicate testing on if array is a tuple of n length <int>, <array> -> <boolean>
- isPair - special case isTuple representable by j('isTuple', 2) -- intentionally does NOT conform to scheme's pair? predicate
- isSingle - special case isTuple representable by j('isTuple', 1)
- isTriple - special case isTuple representable by j('isTuple', 3)
- transform - transforms an object into a new object through an array of pairs-based transform definitions -- This ignores all non-pair values
- getKeys - returns array of object keys returns empty array if value is not an object or if object has no keys
- hasFirst - checks if array contains a first element, always returns false on non-array values
- always - returns a function which always returns the same value -- similar to j.partial(j.identity, value)
- empty - accepts type string, returns initialized, empty value of type specified by type string, with no string, empty returns null
- isMultipleOf - verifies value is multiple of a number
- composePredicate - takes a list of predicate functions and applies them to a value, returning a boolean, optional combinator allows for and/or combination behavior selection; default behavior is "and"
- Assorted updates and enhancements
- Updated shortCircuit to act on an typeString
- Updated merge function to reduce verbosity and improve stability
- Added AMD/RequireJS module support