Expand description
Operators, and applying operations to every outcome of a distribution.
Structs§
- Condition
- How likely a condition is to hold (docs/semantics.md, section 3).
Enums§
- Truth
- A fact, or a distribution of facts.
Functions§
- article
- as_
index - binary
- boolean_
law - The boolean law requested by an observed anonymous draw.
- combine
- Gather the results of applying an operation to each outcome of some distributions into a distribution. Results that are themselves distributions are mixed in. The result is always a distribution, even when only one outcome is possible.
- compare
- Ordering for
<,>and friends. - condition
- contains
- Whether
itemis incoll(forin). - enum_
value - equals
- The language’s
==: numbers compare by value across int, float and prob. - fact
- field
- index
- index_
plain - integer
- Checked integer context: preserve ints, convert exactly integral finite floats, and never round or admit other numeric types implicitly.
- is_
certain - Is
vcertainlytruth? (Forand/orwhose right side has statements.) - lift1
- Apply
fto a value, or to every outcome of a distribution. - lift2
- Apply
fto two values; distributions are independent draws. - lift_n
- Apply
fto a list of values, lifting over any that are distributions. - logic
- Compose independent boolean recipes. Bound facts retain their identity.
- make_
prob - Explicit, checked construction. This never draws, lifts or clamps.
- make_
record - not
- outcomes
- The outcomes of a value: those of a distribution, or the value itself.
- range_
count - Bounded materialization count, never truncating a large length.
- range_
len - The number of integers in
lo..=hi, without overflowing. - to_prob
- A value used as a probability (chance weights,
bernoulli,binomial…): aprobor a number checked at this boundary. Booleans needprob(b). - truth
- The operand of
and,orornot(docs/semantics.md, section 2). - unary
- with_
fields