Jump to content

FP (programming language)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Danakil (talk | contribs) at 02:03, 14 August 2004 (Backus FP language; UNDER CONSTRUCTION). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

FP (short for Functional P programming) is a programming language created by John Backus to support the Function-level programming paradigm.

Overview

The values that FP programs map into one another comprise a set which is closed under sequence formation:

if x1,...,xn are values, then the sequence <x1,...,xn> is also a value

These values can be built from any set of atoms: booleans, integers, reals, characters, etc.

FP programs are functions f that each map a single value x into another:

f:x represents the value that results from applying the function f to the value x

Functions are either primitive (i.e., provided with the FP environment) or are built from the primitives by program-forming operations (also called functionals). One such operation is constant, which transforms a value x into the constant-valued function where:

:y = x

for all values y (except the undefined value, which all functions, being strict, map into itself). Next there are the three principal functionals of FP:

composition     f&#x°g