liveBook · Manning

Partial

partial is a callable factory that returns a new function with specified arguments pre-applied to an existing function, leaving the remaining arguments variable.

How 2 Manning books explain it

Clojure: The Essential Reference

partial is a Clojure function that returns a function with specified leading arguments pre-applied to a target function.

How it is used
Defers function invocation when leading configuration is available before the remaining arguments.
How deep it goes
Defines the contract, positional limitation, arity failure, and alternatives, but does not detail implementation internals.
Examples
Demonstrates incrementing, string searching, validation over sequences, reusable predicates, and comparisons with fn.
What you can do after
Apply partial to build reusable functions and compose configured operations with sequence-processing functions.

Read how Clojure: The Essential Reference explains partial →

Build Your Own Robot: Using Python, CRICKIT, and Raspberry Pi

partial is a callable factory that returns a new function with selected positional or keyword arguments of an existing function pre-bound.

How it is used
Simplifies reusable robot movement functions by pre-binding direction-specific motor arguments.
How deep it goes
Defines argument binding and applies it through a complete motor library, without descending into functools internals.
Examples
Demonstrates forward, backward, turning, spinning, a no-operation function, and interactive motor calls.
What you can do after
Build reusable robot controls from one movement function while retaining duration and speed arguments.

Read how Build Your Own Robot: Using Python, CRICKIT, and Raspberry Pi explains partial →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.