Explorer

definy.stored-snapshot-module-of

description
The module of a snapshot with the IDs of it and its parts
type
Fn(module: @core.project-snapshot-module) -> @definy.stored-snapshot-module
expression
fn(module$0) =>
  let ids$1 = @core.module-part-ids(
      module_name: $0.name,
      part_names: @core.list-map(
        T: @core.module-snapshot-part,
        U: String,
        f: fn(item$2) =>
          $2.name,
        xs: $0.parts
      )
    );
  {
    name: $0.name,
    id: $1.module_id,
    description: $0.description,
    visibility: $0.visibility,
    parts: @definy.stored-snapshot-parts(
      module: $0,
      module_id: $1.module_id,
      part_ids: $1.part_ids,
      start: 0,
      end: @core.list-length(value: $0.parts)
    )
  }
visibility
public
definy.stored-snapshot-module-of (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: EKklwgqFVMNODDgW7zsVTpdM3t1-V6a8GSzZlZX_fTU
content hash: O5IrCeiHDLHA7fKFGd1rPHqvwGkuPxQX4LrgsoL6tCQ