def put.at
import emerging-ezhttp@0.21.0.0/src/echo.bend as Echoimport Base
import emerging-ezhttp@0.21.0.0/src/qs.bend as Qs
60# one stored cookie, once it is known whether it has the new one's name:
61# that one takes the new value in its place, any other is kept and the rest
62# of the store looked at
63def put.at(key: String, old: String, value: String, t: List<&2, Qs.Kv()>,
64 hit: Bool, rest: Unit -> List<&2, Qs.Kv()>) -> List<&2, Qs.Kv()>:
65 match hit:
66 case True{}:
67 (key, value) <> t
68 case False{}:
69 (key, old) <> rest(Unit{})