# Programming functions

Define functions, hold and release evaluation, branch on a condition and update a variable in place.

43 functions

## Described functions

- [add_to](https://hilberon.com/library/add_to)

  Add a value to a variable in place and return the new value.
- [construct](https://hilberon.com/library/construct)

  Apply a head that is itself computed to arguments, as in f'(0) or (x => body)(a).
- [decrement](https://hilberon.com/library/decrement)

  Subtract 1 from a variable in place and return its old value.
- [divide_by](https://hilberon.com/library/divide_by)

  Divide a variable by a value in place and return the new value.
- [evaluate](https://hilberon.com/library/evaluate)

  Evaluate an expression even where it would be held.
- [function](https://hilberon.com/library/function)

  A function with no name; also written x => body.
- [ifelse](https://hilberon.com/library/ifelse)

  A value chosen by a test.
- [increment](https://hilberon.com/library/increment)

  Add 1 to a variable in place and return its old value.
- [indicator](https://hilberon.com/library/indicator)

  A condition as a number: 1 when it is true and 0 when it is false.
- [piecewise](https://hilberon.com/library/piecewise)

  Cases written value if condition, with an optional otherwise case.
- [pre_decrement](https://hilberon.com/library/pre_decrement)

  Subtract 1 from a variable in place and return the new value.
- [pre_increment](https://hilberon.com/library/pre_increment)

  Add 1 to a variable in place and return the new value.
- [release_hold](https://hilberon.com/library/release_hold)

  Evaluate an expression that was held.
- [set](https://hilberon.com/library/set)

  Assign a value to a name; also written name := value.
- [set_delayed](https://hilberon.com/library/set_delayed)

  Define a function; also written f(x) := body.
- [slot](https://hilberon.com/library/slot)

  The n-th argument of a function with no name: inside function(body), slot(1) is the first.
- [subs_repeated](https://hilberon.com/library/subs_repeated)

  Apply substitution rules again and again until nothing changes.
- [subtract_from](https://hilberon.com/library/subtract_from)

  Subtract a value from a variable in place and return the new value.
- [times_by](https://hilberon.com/library/times_by)

  Multiply a variable by a value in place and return the new value.
- [with_effort](https://hilberon.com/library/with_effort)

  Evaluate a body at quick, standard, deep or exhaustive effort.

## More functions in this category

Nobody has described these yet: each is listed with its first form.

- [alternatives](https://hilberon.com/library/alternatives)
- [block](https://hilberon.com/library/block)
- [clear](https://hilberon.com/library/clear)
- [clear_all](https://hilberon.com/library/clear_all)
- [composition](https://hilberon.com/library/composition)
- [conditional](https://hilberon.com/library/conditional)
- [defer](https://hilberon.com/library/defer)
- [for_loop](https://hilberon.com/library/for_loop)
- [hold](https://hilberon.com/library/hold)
- [is_match](https://hilberon.com/library/is_match)
- [iterate](https://hilberon.com/library/iterate)
- [module](https://hilberon.com/library/module)
- [repeat](https://hilberon.com/library/repeat)
- [replace](https://hilberon.com/library/replace)
- [replace_list](https://hilberon.com/library/replace_list)
- [return](https://hilberon.com/library/return)
- [step_constrained](https://hilberon.com/library/step_constrained)
- [switch](https://hilberon.com/library/switch)
- [time_constrained](https://hilberon.com/library/time_constrained)
- [unevaluated](https://hilberon.com/library/unevaluated)
- [which](https://hilberon.com/library/which)
- [while_loop](https://hilberon.com/library/while_loop)
- [with](https://hilberon.com/library/with)

## Other categories

- [Abstract algebra](https://hilberon.com/library/category/abstract-algebra) 55
- [Algebra](https://hilberon.com/library/category/algebra) 52
- [Assumptions](https://hilberon.com/library/category/assumptions) 10
- [Calculus](https://hilberon.com/library/category/calculus) 21
- [Differential and difference equations](https://hilberon.com/library/category/differential-and-difference-equations) 187
- [Elementary functions](https://hilberon.com/library/category/elementary-functions) 34
- [Equation solving](https://hilberon.com/library/category/equation-solving) 15
- [Linear algebra](https://hilberon.com/library/category/linear-algebra) 44
- [Lists](https://hilberon.com/library/category/lists) 52
- [Logic and comparison](https://hilberon.com/library/category/logic-and-comparison) 45
- [Number theory](https://hilberon.com/library/category/number-theory) 53
- [Numerical computation](https://hilberon.com/library/category/numerical-computation) 5
- [Optimization](https://hilberon.com/library/category/optimization) 6
- [Presentation](https://hilberon.com/library/category/presentation) 7
- [Probability and stochastic processes](https://hilberon.com/library/category/probability-and-stochastic-processes) 73
- [Series and sums](https://hilberon.com/library/category/series-and-sums) 17
- [Special functions](https://hilberon.com/library/category/special-functions) 95
- [Strings](https://hilberon.com/library/category/strings) 4
- [Transforms](https://hilberon.com/library/category/transforms) 15
- [Trigonometry](https://hilberon.com/library/category/trigonometry) 28

---
Source: https://hilberon.com/library/category/programming
