Explorer

core.call-arguments-to-source

description
Arguments of a call from the index as source text
type
Fn(arguments: List<Record{name: String, value: @core.expression}>, index: Number) -> String
expression
fn(arguments$0, index$1) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      "",
    #some(item$1003) =>
      let argument$2 = $1003;
      @core.string-concat(
        left: match @core.equal(left: $1, right: 0) {
          true =>
            "",
          false =>
            ", "
        },
        right: @core.string-concat(
          left: $2.name,
          right: @core.string-concat(
            left: ": ",
            right: @core.string-concat(
              left: @core.expression-to-source(expr: $2.value),
              right: @core.call-arguments-to-source(arguments: $0, index: @core.plus(left: $1, right: 1))
            )
          )
        )
      )
  }
visibility
public
core.call-arguments-to-source (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: ow_f6fKiLyCiZbYRjm9SKxGC0wioMGZliR1aUoujCR4
content hash: dpmnmo3StVWkR4g_Hnwq0be0oqRq4ybiuCsIgZrRu0o