def AaText.init

bend-osdev-apparmor@0.1.0.0 · text.bend:131

import bend-osdev-apparmor@0.1.0.0/text.bend as Text
import Base

131# the list without its last element
132def AaText.init(xs: List<&2, U32>) -> List<&2, U32>:
133  match xs:
134    case Nil{}:
135      Nil{}
136    case Con{h, t}:
137      match t:
138        case Nil{}:
139          Nil{}
140        case Con{a, b}:
141          Con{h, AaText.init(Con{a, b})}

Uses (2)

Used by (2)