Explorer

core.module-entries-removed

description
Part ids that were in the previous module entries but are not in the ones of the snapshot, added to the given list
type
Fn(
  previous: List<Record{
    part_id: String,
    module_id: String,
    part_type: Union{#none, #some(@core.expression)},
    type_declaration: Union{#none, #some(@core.expression)},
    expression_key: Union{#none, #some(String)},
    has_expression: Boolean,
    references: List<String>
  }>,
  committed: List<List<Record{
    part_id: String,
    module_id: String,
    part_type: Union{#none, #some(@core.expression)},
    type_declaration: Union{#none, #some(@core.expression)},
    expression_key: Union{#none, #some(String)},
    has_expression: Boolean,
    references: List<String>
  }>>,
  index: Number,
  removed: List<String>
) -> List<String>
expression
fn(previous$0, committed$1, index$2, removed$3) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      $3,
    #some(entry$4) =>
      match @core.module-entry-lookup(entries: $1, part_id: $4.part_id) {
        #none(_) =>
          @core.module-entries-removed(
            previous: $0,
            committed: $1,
            index: @core.plus(left: $2, right: 1),
            removed: @core.list-append(list: $3, item: $4.part_id)
          ),
        #some(_) =>
          @core.module-entries-removed(previous: $0, committed: $1, index: @core.plus(left: $2, right: 1), removed: $3)
      }
  }
visibility
public
core.module-entries-removed (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: fKacKPacOTAq78XDDwjgqNh86Jp51Vcj4pgUt6eTwyA
content hash: wM7bCv8LD0F8EyividiY0thsRNlqVaF5NdRLrYA9J00