def resolve_positions

cli@0.2.0.0 · cli.bend:3884

import cli@0.2.0.0/cli.bend as Cli
import Base

3884def resolve_positions(slots: List<&2, ArgInfo>,
3885    +tokens: List<&2, String>, +h: Host) -> FieldBuild:
3886  match slots:
3887    case Nil{}: Built{[]}
3888    case +info <> +tail:
3889      +amount = position_take_count(info_kind(info), tail, tokens)
3890      combine_build(
3891        resolve_pos(info, List.take(&2, String, tokens, amount), h),
3892        resolve_positions(tail, List.drop(&2, String, tokens, amount), h))

Uses (11)

Used by (1)