Explorer

definy.sync-summary-text

description
The text of the result of definy_receive / definy_send
type
Fn(verb: String, remote: String, total: Number, summary: Record{count: Number, errors: List<String>}) -> String
expression
fn(verb$0, remote$1, total$2, summary$3) =>
  @std.string-join(
    items: @core.list-concat(
      left: [
        @std.string-join(
          items: [
            $0,
            " ",
            @std.number-to-string(value: $3.count),
            " of ",
            @std.number-to-string(value: $2),
            " events (",
            $1,
            ")"
          ],
          separator: ""
        )
      ],
      right: @core.list-map(
        T: String,
        U: String,
        f: fn(item$4) =>
          @core.string-concat(left: "- ", right: $4),
        xs: $3.errors
      )
    ),
    separator: "\n"
  )
visibility
public
definy.sync-summary-text (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: aPNZRNAvlV98F-StoSM3NPmtSQc0TFblbihc_gC1o3E
content hash: 43OVXsXHPQsHB6CRXIwOuwA15qt9Xl8zi6F-cWJij1Y