Explorer

definy.uncached-hashes

description
result followed by the hashes from index that are not cached
type
Fn(
  hashes: List<String>,
  cached: List<@definy.definition-cache-entry>,
  index: Number,
  result: List<String>
) -> List<String>
expression
fn(hashes$0, cached$1, index$2, result$3) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      $3,
    #some(hash$4) =>
      @definy.uncached-hashes(
        hashes: $0,
        cached: $1,
        index: @core.plus(left: $2, right: 1),
        result: match @definy.definition-cache-find(entries: $1, content_hash: $4, index: 0) {
          #some(_) =>
            $3,
          #none(_) =>
            @core.list-append(list: $3, item: $4)
        }
      )
  }
visibility
public
definy.uncached-hashes (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: wLvO9ZN6TXw-NaIMYhGDKH0lC_FC3-cZ9dBzMtB2-dI
content hash: BbZ4PkmCXVwSq-48B9vIaOjf1ZBDjov-kN1-K7tVS8k