(sigil fp)

Functional Programming Utilities for Sigil

This package provides function composition and partial application combinators. Import the aggregate module to get everything:

(import (sigil fp))

Or import a specific sub-module:

;; Function composition and partial application
(import (sigil fp fn))

;; Threading macros (chain, ->, some->)
(import (sigil fp chain))

Threading macros live in core

The threading macros chain, ->, and some-> now live in (sigil core), which is auto-imported into every module, so every program already has them in scope without importing anything. The (sigil fp chain) sub-module re-exports them from core purely for backward compatibility with existing (import (sigil fp ...)) code.

Sub-modules

  • (sigil fp fn) - compose, pipe, partial, partial-right, const, flip, complement, juxt
  • (sigil fp chain) - chain, ->, some-> (re-exported from core)

Exports

partialvariable

(No description)

(No description)

composevariable

(No description)

pipevariable

(No description)

constvariable

(No description)

flipvariable

(No description)

complementvariable

(No description)

juxtvariable

(No description)

chainvariable

(No description)

->variable

(No description)

some->variable

(No description)