def unwrap

bendvy-ecs-core@0.1.0.3 · execution_command_publication.bend:32

import bendvy-ecs-core@0.1.0.3/execution_command_publication.bend as ExecutionCommandPublication
import Base
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as Layout

32def unwrap(~P:Type,~V:Data,value:Maybe<&1,Layout.Viewed<P,V>>) -> Maybe<&1,P>:
33  match value:
34    case None{}:None{}
35    case Some{Layout.Viewed{owner,_}}:Some{owner}

Uses (2)

Used by (1)