Home

functionthat

Functionthat is a placeholder name used in programming and computer science to refer to a function whose exact behavior is not specified in a given discussion. It is not a standard library function or a language feature; rather, it serves as an example to illustrate concepts about functions in general.

In instructional contexts, functionthat is employed to demonstrate function signatures, higher-order functions, and composition without committing

Common use cases include illustrating how functions can be passed as values, returned from other functions,

Functionthat is most valuable as a pedagogical tool: it focuses attention on structure, interfaces, and patterns

to
a
particular
implementation.
It
can
stand
in
for
a
unary
function,
such
as
functionthat(x)
=
...,
or
for
a
more
general
role
where
the
function
may
take
multiple
arguments
or
be
passed
as
an
argument
to
another
function.
The
specific
details
of
what
functionthat
does
are
left
to
the
reader
or
to
the
surrounding
explanation.
or
composed
with
other
functions.
For
example,
one
may
discuss
applying
functionthat
to
each
element
of
a
list,
or
using
functionthat
as
an
argument
to
a
map
or
filter
operation.
In
type
notation,
functionthat
is
often
described
abstractly
as
a
mapping
from
one
type
to
another
(A
->
B)
or
as
a
higher-order
function
that
takes
or
returns
functions.
of
use
rather
than
concrete
behavior.
When
moving
to
implementation,
functionthat
should
be
replaced
with
a
concrete
function
that
fulfills
the
intended
behavior.
See
also
higher-order
functions,
function
composition,
and
placeholder
names
in
programming.