MlbendHuggingface.text_value: def of mlbend-huggingface@0.1.1.0 Import: import mlbend-huggingface@0.1.1.0/main.bend as MlbendHuggingface Lines 180-188 of mlbend-huggingface@0.1.1.0/main.bend: https://jend.leeeet.dev/read.txt?path=mlbend-huggingface@0.1.1.0/main.bend&start_line=180&end_line=188 import Base import bend-kit-json@0.6.1.1/json.bend as Json import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # The text of a JSON value, when it is a string or a number. def text_value(v: Json.Val) -> Maybe<&1, String>: match v: case Json.Str{s}: Some{Bytes.to_string(s)} case Json.Num{s}: Some{Bytes.to_string(s)} case _: None{} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=to_string https://jend.leeeet.dev/definition.txt?path=bend-kit-json@0.7.0.0/json.bend&name=Val