def text.put
import ezsys@0.1.0.0/src/text.bend as Textimport Base
75# what a finished marker becomes: its value, or the marker as written
76def text.put(
77 +open: String,
78 +close: String,
79 key: String,
80 got: Maybe<&2, String>
81) -> String:
82 match got:
83 case None{}:
84 open ++ (key ++ close)
85 case Some{value}:
86 value