Explorer

definy.sync-events-of-account

description
The events by the account
type
Fn(events: List<@definy.stored-event>, account_id: String) -> List<@definy.stored-event>
expression
fn(events$0, account_id$1) =>
  @core.list-fold(
    T: @definy.stored-event,
    A: List<@definy.stored-event>,
    reducer: fn(acc$2, item$3) =>
      match @core.equal(left: $3.account_id, right: $1) {
        true =>
          @core.list-append(list: $2, item: $3),
        false =>
          $2
      },
    init: [],
    xs: $0
  )
visibility
public
definy.sync-events-of-account (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: OqThYyuXPCvAxAPHyI5OT5CL_LvO2g7dZwgQkhT3H9Y
content hash: QcrtGzbkto4RUbVBWoY1VHU2qGVTBVE8YpY3kKjs_iY