Map
Index
Random
Help
th

Quote: construct an array by a predicates over its index set that guards expressions

topics > all references > references m-o > QuoteRef: messJ2_1982 , p. 55



Topic:
data structure literals

Quotation Skeleton

[Defines array constructor as given an index set, if a predicate holds then set the corresponding values of the array to the given expression.] Examples array [1..n], [1..n] of int ([i,j]: i,j .isIn. [1..n] and i=j => 1, others 0) constructs … [of ones along the diagonal and the rest zero].   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: data structure literals (9 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.