core.compile-string-address
- description
- The address of the string box of value in the data segment (from index of the string table), or -1 if it is not there
- type
Fn(strings: List<Record{value: String, address: Number}>, value: String, index: Number) -> Number- expression
fn(strings$0, value$1, index$2) => match @core.list-get(list: $0, index: $2) { #none(_) => -1, #some(item$1004) => let entry$3 = $1004; match @core.equal(left: $3.value, right: $1) { true => $3.address, false => @core.compile-string-address(strings: $0, value: $1, index: @core.plus(left: $2, right: 1)) } }
- visibility
- public
core.compile-string-address (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204) id: kb8pHxl1dgIJ-g3jYUprkQ0FgwNfBZ4l15pdNGSIeY4 content hash: I5jZHqhOB-yTe8hdB1mI_R-Nvc4n0DcDtiFNsHtJ7FQ