~/bend-docscommunity

owner_product.bend checks

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

1 import
import Base

Types

type Owner source · line 4 · raw

@-L:Type -> @-R:Type -> Type

Generic heterogeneous owner product, not a registry metadata adapter. Library-generated paths retain the physical type through arbitrary nesting.

type Path source · line 6 · raw

Data

type Lens source · line 26 · raw

@-Whole:Type -> @-Part:Type -> @-Rest:Type -> Type

Canonical setup composes these fields; user systems only receive opaque caps.

Templates

template Part source · line 9 · raw

@-L:Type -> @-R:Type -> @path:Path -> Type

template Rest source · line 13 · raw

@-L:Type -> @-R:Type -> @path:Path -> Type

template take source · line 17 · raw

@-L:Type -> @-R:Type -> @path:Path -> @owner:Owner<L, R> -> Pair(Rest(L, R, path), Part(L, R, path))

template put source · line 21 · raw

@-L:Type -> @-R:Type -> @path:Path -> @rest:Rest(L, R, path) -> @part:Part(L, R, path) -> Owner<L, R>

template lens source · line 28 · raw

@-L:Type -> @-R:Type -> @-path:Path -> Lens<Owner<L, R>, Part(L, R, path), Rest(L, R, path)>

template get_field source · line 30 · raw

@-W:Type -> @-P:Type -> @-R:Type -> @value:Lens<W, P, R> -> @_:W -> Pair(R, P)

template put_field source · line 33 · raw

@-W:Type -> @-P:Type -> @-R:Type -> @value:Lens<W, P, R> -> @_:R -> @_:P -> W

template joined source · line 36 · raw

@-A:Type -> @-B:Type -> @-P:Type -> @outer:A -> @observed:Pair(B, P) -> Pair(Pair(A, B), P)

template inward source · line 39 · raw

@-W:Type -> @-M:Type -> @-A:Type -> @-P:Type -> @-B:Type -> @-inner:Lens<M, P, B> -> @observed:Pair(A, M) -> Pair(Pair(A, B), P)

template composed_take source · line 42 · raw

@-W:Type -> @-M:Type -> @-A:Type -> @-P:Type -> @-B:Type -> @-outer:Lens<W, M, A> -> @-inner:Lens<M, P, B> -> @owner:W -> Pair(Pair(A, B), P)

template composed_put source · line 44 · raw

@-W:Type -> @-M:Type -> @-A:Type -> @-P:Type -> @-B:Type -> @-outer:Lens<W, M, A> -> @-inner:Lens<M, P, B> -> @rest:Pair(A, B) -> @part:P -> W

template compose source · line 47 · raw

@-W:Type -> @-M:Type -> @-A:Type -> @-P:Type -> @-B:Type -> @-outer:Lens<W, M, A> -> @-inner:Lens<M, P, B> -> Lens<W, P, Pair(A, B)>