def fetchable

cswap-bend-cli@0.1.0.0 · collectrun.bend:119

import cswap-bend-cli@0.1.0.0/collectrun.bend as Collectrun
import Base
import cswap-bend-cli@0.1.0.0/ustore.bend as Ustore
import cswap-bend-cli@0.1.0.0/collect.bend as Collect

119# Slots with nothing that rules out a fetch.
120def fetchable(ss: List<&2, Collect.St>) -> List<&2, Ustore.Id>:
121  match ss:
122    case Nil{}:
123      []
124    case Con{+s, t}:
125      fetchable.cons(Maybe.is_none(&2, String, Collect.st_sentinel(s)), Collect.st_id(s), fetchable(t))

Uses (8)

Used by (1)