Runic.Workflow.Facts (Runic v0.1.0-alpha.7)

Copy Markdown View Source

Unified accessors for Fact and FactRef structs.

Avoids pattern-matching on struct types throughout the codebase when only the hash, ancestry, or "has a value?" predicate is needed.

Summary

Functions

Returns the ancestry of a Fact or FactRef.

Returns the hash of a Fact or FactRef.

Converts a Fact to a FactRef, discarding the value.

Returns true if the struct carries a concrete value (only true for Facts with non-nil values).

Functions

ancestry(arg1)

Returns the ancestry of a Fact or FactRef.

hash(arg1)

Returns the hash of a Fact or FactRef.

to_ref(fact)

Converts a Fact to a FactRef, discarding the value.

value?(arg1)

Returns true if the struct carries a concrete value (only true for Facts with non-nil values).