Plange


declare a variable and optionally assign a value to it

Example

<Number> x <- 100;

Example

<> name <- "Alice"; //implicitly type String

Example

object <- {
    "employees":[
        (|"John", "Doe"|),
        (|"Anna", "Smith"|),
        (|"Peter", Jones"|)],
    "contractors":[
        (|"Matt", "Williams"|)]
};

object <- (x) { return x*2; }; //no type constraint

See: STATEMENT


copyright © Brent Lewis 2017