Plange


create a totally-ordered open/closed/half-open discreet/continuous Collection

syntax

"(" {IC} "..." {IC} EXPRESSION {IC} ( "]" | ")" ) | ( "[" | "(" ) {IC} EXPRESSION {IC} "..." {IC} ")" | ( "(" | "[" ) {IC} EXPRESSION {IC} "..." {IC} EXPRESSION {IC} ( "]" | ")" )

Example

wholeNumbers := [ 0 ... ); // the non negative integers - the set is infinite and denumerable

Example

positivesIntsToN := [ 1 ... n ]; // the integers 1 to n inclusive - the set is finite and denumerable

Example

negativeReals := ( ... 0.0 ) // the negative real numbers - the set is infinite and nondenumerable

copyright © Brent Lewis 2017