Explorer

core.code-parts

description
The definitions {id, expression} of the parts that quoted code references, read from code.encoded_parts (core.quote-parts). core.compile-to-wasm(expr: code.expression, parts: core.code-parts(encoded: code.encoded_parts)) compiles the code, the same way at run time and at compile time. Empty if encoded is not written that way
type
Fn(encoded: String) -> List<Record{id: String, expression: @core.expression}>
expression
fn(encoded$0) =>
  match @core.decode-value(text: $0) {
    #some(value$1) =>
      match $1 {
        #list(items$2) =>
          match @core.eval-native-value-to-parts(items: $2) {
            #some(parts$3) =>
              $3,
            #none(_) =>
              []
          },
        _ =>
          []
      },
    #none(_) =>
      []
  }
visibility
public
core.code-parts (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: cMOiv_7CGgrGkfhr7F7AuGkcErLoklK0pVyg0DjaFho
content hash: KOozN9UJhW2w-myKcsMIxE7mxkOteQcaEF7qMJPAiAM