Search engine for discovering works of Art, research articles, and books related to Art and Culture
ShareThis
Javascript must be enabled to continue!

Defined functions

View through CrossRef
Algorithms written in APL are called defined functions. A defined function consists of a header line and zero or more body lines. The header line indicates the name and syntax class of the function and gives a list of names to be localised and, in the case of argument names, initialised. Each body line consists of an optional label followed by an APL line to be evaluated. Body lines are evaluated in the order in which they occur in the defined function unless a statement beginning with a right arrow is evaluated.A defined function is established in a workspace by the system function □ FX, by actions in function definition mode, or by the system command ) COPY. In this standard, a defined-function is represented as an object with three attributes: canonical-representation, trace-vector, and stop-vector. A defined-function is called when its name occurs in a prefix of the current-stack matching one of the patterns in the phrase-table. A defined-function is called by the operation call defined function. This operation prefixes the state-indicator with a new context, localises and initialises any local names in the header-line, and calls the operation defined-function-control. A defined-function ends when defined-function-control finds current-line-number set to a value not in the closed-interval-between one and last-line-number. At this point, the first item of the state-indicator is discarded and a token of class result is returned, via call defined function, to the phrase-evaluator that called it.The returned token may be constant (for functions returning a value), nil (for functions that return no value), unwind (for functions that end through the evaluation of an escape arrow), or reset (as the result of an ) SIC command).If a line in a defined-function signals an error, immediate-execution is called to report the error and suspend the defined-function. Immediate-execution may return either a branch to indicate that evaluation of the defined-function should continue, or an escape or reset to indicate that the defined-function context should be removed from the state-indicator.
Association for Computing Machinery (ACM)
Title: Defined functions
Description:
Algorithms written in APL are called defined functions.
A defined function consists of a header line and zero or more body lines.
The header line indicates the name and syntax class of the function and gives a list of names to be localised and, in the case of argument names, initialised.
Each body line consists of an optional label followed by an APL line to be evaluated.
Body lines are evaluated in the order in which they occur in the defined function unless a statement beginning with a right arrow is evaluated.
A defined function is established in a workspace by the system function □ FX, by actions in function definition mode, or by the system command ) COPY.
In this standard, a defined-function is represented as an object with three attributes: canonical-representation, trace-vector, and stop-vector.
A defined-function is called when its name occurs in a prefix of the current-stack matching one of the patterns in the phrase-table.
A defined-function is called by the operation call defined function.
This operation prefixes the state-indicator with a new context, localises and initialises any local names in the header-line, and calls the operation defined-function-control.
A defined-function ends when defined-function-control finds current-line-number set to a value not in the closed-interval-between one and last-line-number.
At this point, the first item of the state-indicator is discarded and a token of class result is returned, via call defined function, to the phrase-evaluator that called it.
The returned token may be constant (for functions returning a value), nil (for functions that return no value), unwind (for functions that end through the evaluation of an escape arrow), or reset (as the result of an ) SIC command).
If a line in a defined-function signals an error, immediate-execution is called to report the error and suspend the defined-function.
Immediate-execution may return either a branch to indicate that evaluation of the defined-function should continue, or an escape or reset to indicate that the defined-function context should be removed from the state-indicator.

Related Results

Breast Carcinoma within Fibroadenoma: A Systematic Review
Breast Carcinoma within Fibroadenoma: A Systematic Review
Abstract Introduction Fibroadenoma is the most common benign breast lesion; however, it carries a potential risk of malignant transformation. This systematic review provides an ove...
Ostrowski-Type Fractional Integral Inequalities: A Survey
Ostrowski-Type Fractional Integral Inequalities: A Survey
This paper presents an extensive review of some recent results on fractional Ostrowski-type inequalities associated with a variety of convexities and different kinds of fractional ...
Efficient by Precision Algorithms for Approximating Functions from Some Classes by Fourier Series
Efficient by Precision Algorithms for Approximating Functions from Some Classes by Fourier Series
Introduction. The problem of approximation can be considered as the basis of computational methods, namely, the approximation of individual functions or classes of functions by fun...
On Tribonacci Functions and Gaussian Tribonacci Functions
On Tribonacci Functions and Gaussian Tribonacci Functions
In this work, Gaussian Tribonacci functions are defined and investigated on the set of real numbers $\mathbb{R},$ \textit{i.e}., functions $f_{G}$ $:$ $\mathbb{R}\rightarrow \mathb...
FUNCTIONS OF MANAGEMENT ACCOUNTING
FUNCTIONS OF MANAGEMENT ACCOUNTING
One of the most important tasks of management accounting is to provide quality and efficient accounting information to users. The effectiveness of management accounting is manifest...
ANALISIS LOKUSI ILOKUSI PERLOKUSI DALAM DRAMA KOE KOI
ANALISIS LOKUSI ILOKUSI PERLOKUSI DALAM DRAMA KOE KOI
Abstrak: Tujuan dari penelitian ini adalah mendeskripsikan dan menganalisis lokusi, ilokusi, dan perlokusi dalam kehidupan sehari-hari melalui drama koe koi, dan mendeskripsikan da...
Following Rural Functions to Classify Rural Sites: An Application in Jixi, Anhui Province, China
Following Rural Functions to Classify Rural Sites: An Application in Jixi, Anhui Province, China
Rural areas are a type of self-organized regional living environment, with multi-functional symbiosis between humans and land; their functional attributes are function superpositio...
Complex small entire functions
Complex small entire functions
Small functions were defined in complex analysis together with the notions of order of growth, lower order of growth, type of growth and lower type of growth. The set of small enti...

Back to Top