FP (programming language): Difference between revisions

Content deleted Content added
Danakil (talk | contribs)
Danakil (talk | contribs)
No edit summary
Line 51:
and \'''f''':&lang;'''x'''<sub>1</sub>,'''x'''<sub>2</sub>,...,'''x'''<sub>n</sub>&rang; = '''f''':&lang;\'''f''':&lang;'''x'''<sub>1</sub>,...,'''x'''<sub>n-1</sub>&rang;,'''x'''<sub>n</sub>&rang;
and \'''f''':&lang; &rang; = '''unit f'''
 
==Equational functions==
 
In addition to being constructed from primitives by functionals, a function may be defined recursively by an equation, the simplest kind being:
'''f''' &equiv; ''E'''''f'''
where ''E''''''f''' is an [[expression (programming)|expression]] built from primitives, other defined functions, and the function symbol '''f''' itself, using functionals.
 
An example of a primitive function is the '''selector''' function family, denoted by '''1''','''2''',... where:
'''1''':&lang;'''x'''<sub>1</sub>,...,'''x'''<sub>n</sub>&rang; = '''x'''<sub>1</sub>
'''''i''''':&lang;'''x'''<sub>1</sub>,...,'''x'''<sub>n</sub>&rang; = '''x'''<sub>i</sub> if 0 < '''''i''''' &le; n
= &#8869; otherwise
 
 
[[es:FP (lenguaje de programación)]]