def places.group

bend-lint-rules@0.2.0.0 · lib/text/main.bend:346

import bend-lint-rules@0.2.0.0/lib/text/main.bend as BendLintRules
import Base
import bend-lint-api@0.2.0.0/shared/names.bend as Names

346# The requests by file, each offset numbered by itself, onto `groups`.
347def places.group(
348  requests: List<&2, Place>,
349  groups: Map<&2, List<&2, Placed>>
350) -> Map<&2, List<&2, Placed>>:
351  match requests:
352    case Nil{}:
353      groups
354    case Con{Place{path, +offset}, rest}:
355      places.group(rest, Names.Group.add(Placed, groups, path, Placed{offset, offset}))

Uses (5)

Used by (1)