summaryrefslogtreecommitdiffstats
path: root/content/zettel/2e1b3.md
blob: ed94ef66ba88b1326a0857974f1b5a8ad51a0ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
+++
title = "γ function"
author = "Yann Herklotz"
tags = []
categories = []
backlinks = ["2e1b2"]
forwardlinks = ["2e1b4", "2e1b3a"]
zettelid = "2e1b3"
+++

This is an if-then-else function, which takes in a boolean predicate and
picks one of the possible values from it. For example, the following:

    x2 = γ(b, x1, x3)

will pick either `x1` or `x3` based on the predicate value of `b`, where
`b` is an expression.