summaryrefslogtreecommitdiffstats
path: root/content/zettel/2e1b3.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/zettel/2e1b3.md')
-rw-r--r--content/zettel/2e1b3.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/content/zettel/2e1b3.md b/content/zettel/2e1b3.md
new file mode 100644
index 0000000..ed94ef6
--- /dev/null
+++ b/content/zettel/2e1b3.md
@@ -0,0 +1,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.