~/bend-docscommunity

ordinary_app_records.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.5/ordinary_app_records.bend as Ordinary_app_records

2 imports
import Base
import ./ordinary_app_registration_fields.bend as Stored

Types

type Record source · line 6 · raw

@S:Data -> @Token:Type -> Type

Advanced application carrier pairing actual affine registration Token with its detached Fields. Fields alone do not replace registration authority; keep token and metadata from the same registration together.

Templates

template observed source · line 10 · raw

@-S:Data -> @-Token:Type -> @record:Record<S, Token> -> Pair(Record<S, Token>, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)

Return the record owner together with its one detached Fields entry. Does not invoke the registration, advance its cursor or read payloads.

template second source · line 13 · raw

@-S:Data -> @-Left:Type -> @-Right:Type -> @left:Left -> @before:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>> -> @result:Pair(Right, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>) -> Pair(Pair(Left, Right), List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)

template first source · line 16 · raw

@-S:Data -> @-Left:Type -> @-Right:Type -> @rightFold:(@_:Right -> Pair(Right, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)) -> @right:Right -> @result:Pair(Left, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>) -> Pair(Pair(Left, Right), List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)

template pair source · line 22 · raw

@-S:Data -> @-Left:Type -> @-Right:Type -> @leftFold:(@_:Left -> Pair(Left, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)) -> @rightFold:(@_:Right -> Pair(Right, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)) -> @owners:Pair(Left, Right) -> Pair(Pair(Left, Right), List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)

Advanced metadata fold over heterogeneous owners in left/right order. Returns both owners and appended detached fields; supplied folds must preserve their owned registrations rather than fabricate authority.

template empty source · line 27 · raw

@-S:Data -> @unit:Unit -> Pair(Unit, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)

Unit-owner base metadata fold, returning the same Unit and no fields. Does not register a system or infer metadata from arbitrary owners.

template fold_pair source · line 31 · raw

@-S:Data -> @-Left:Type -> @-Right:Type -> @-left:(@_:Left -> Pair(Left, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)) -> @-right:(@_:Right -> Pair(Right, List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)) -> @owners:Pair(Left, Right) -> Pair(Pair(Left, Right), List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_app_registration_fields.Fields<S>>)

Closed advanced adapter composing two metadata folds with the same owner-threading and left/right order as pair; does not execute systems.