def stem

near-v-framework@0.4.0.0 · domain/architecture/system/release/ops.bend:156

import near-v-framework@0.4.0.0/domain/architecture/system/release/ops.bend as Ops
import Base

156def stem(+f: String) -> String:
157  Bool.pick(String, String.ends_with(f, ".bend"), String.take(f, Nat.sub(String.length(f), 5n)),
158    Bool.pick(String, String.ends_with(f, ".js"), String.take(f, Nat.sub(String.length(f), 3n)),
159      Bool.pick(String, String.ends_with(f, ".c"), String.take(f, Nat.sub(String.length(f), 2n)), f)))

Uses (6)

Used by (1)