Explorer

definy.closure-module-part-ids

description
result followed by the part IDs of the candidates from index in the modules module_ids
type
Fn(
  candidates: List<@definy.closure-candidate>,
  module_ids: List<String>,
  index: Number,
  result: List<String>
) -> List<String>
expression
fn(candidates$0, module_ids$1, index$2, result$3) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      $3,
    #some(item$4) =>
      @definy.closure-module-part-ids(
        candidates: $0,
        module_ids: $1,
        index: @core.plus(left: $2, right: 1),
        result: match @definy.strings-contain(items: $1, value: $4.part.module_id, index: 0) {
          true =>
            @core.list-append(list: $3, item: $4.part.id),
          false =>
            $3
        }
      )
  }
visibility
public
definy.closure-module-part-ids (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: IAiU-mE770_Pbpe74KLSAX1UHYvqJyxK0SccYVdE07A
content hash: DLIgk1LyhkAM59gmAwriLnCbHx3ZrH9axqG7WwD-shg