Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

set function

Assign a value to a name; also written name := value.

How to write it

set(name, value)

name
The name to assign. Takes a variable.
value
The value. Takes an expression.

Examples

  • a:=5;  a+1  6\displaystyle a := 5;\; a+1 \; 6
    a := 5; a + 1

    In the solver, a := 5; a + 1 gives 6.

    Open in the solver
  • set_delayed

    Define a function; also written f(x) := body.

  • release_hold

    Evaluate an expression that was held.

  • slot

    The n-th argument of a function with no name: inside function(body), slot(1) is the first.

  • pre_increment

    Add 1 to a variable in place and return the new value.

  • subs_repeated

    Apply substitution rules again and again until nothing changes.

  • pre_decrement

    Subtract 1 from a variable in place and return the new value.