core.type-union-payload-types
- description
- The payload types of the variants of a union type (expression) from index
- type
Fn( variants: List<Record{tag: String, payload_type: Union{#none, #some(@core.expression)}}>, index: Number ) -> List<@core.expression>- expression
fn(variants$0, index$1) => match @core.list-get(list: $0, index: $1) { #none(_) => [], #some(item$1003) => @core.list-concat( left: match $1003.payload_type { #none(_) => [], #some(payload_type$2) => [$2] }, right: @core.type-union-payload-types(variants: $0, index: @core.plus(left: $1, right: 1)) ) }
- visibility
- public
core.type-union-payload-types (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204) id: yuUp0RyMVWwjYIFevLZhYYpKFKtBjiXHoYWfUiZcqjg content hash: MSZ4c24Ht9XtFiNDIsMTRBe_1WDhWW7wjCv9MsyOGjw