Explorer

definy.snapshot-module-exists

description
Whether the snapshot has a module named name
type
Fn(modules: List<@core.project-snapshot-module>, name: String) -> Boolean
expression
fn(modules$0, name$1) =>
  @core.list-fold(
    T: @core.project-snapshot-module,
    A: Boolean,
    reducer: fn(acc$2, item$3) =>
      @core.or(left: $2, right: @core.equal(left: $3.name, right: $1)),
    init: false,
    xs: $0
  )
visibility
public
definy.snapshot-module-exists (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: 1N5PZ62Ndkm5hW3nrXie_l5rnDUmbUZAe4KTDRg4nbo
content hash: tDcCmt5oxnjwEV8TdmPZq8ANpdKo8maGe5np-A7ydQM