Explorer

definy.part-content-hash

description
The content hash of the part with the ID from index
type
Fn(parts: List<@definy.stored-snapshot-part>, part_id: String, index: Number) -> Union{#none, #some(String)}
expression
fn(parts$0, part_id$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      #none,
    #some(part$3) =>
      match @core.equal(left: $3.id, right: $1) {
        true =>
          #some($3.content_hash),
        false =>
          @definy.part-content-hash(parts: $0, part_id: $1, index: @core.plus(left: $2, right: 1))
      }
  }
visibility
public
definy.part-content-hash (project definy, branch release-time-compare, snapshot JJrRgQW_LZN6tN8CbYr1dN7HosqNTuIWWYx7ACbt1n0)
id: Vy33_9FRUrvm9sIn51vz1k0zZdBeoQvKRNFDaCLLQGE
content hash: 3sHl_jg1r5IDRxM6OOYhIKlM6Zr7IqZlpCAUqL-ydzU