def look

bend-kit-llm@0.13.0.1 · llm.bend:159

import bend-kit-llm@0.13.0.1/llm.bend as Llm
import Base

159# The first value at path k, or "".
160def look(d: List<&2, Leaf>, +k: String) -> String:
161  match d:
162    case Nil{}:
163      ""
164    case Con{Leaf{p, v}, t}:
165      Bool.pick(String, String.eq(p, k), v, look(t, k))

Uses (5)

Used by (3)