Add Env.update
This commit is contained in:
parent
ab37e8ec22
commit
9f3eb956d3
|
@ -77,3 +77,6 @@ let diff x y =
|
|||
| Some _ -> None
|
||||
| None -> vx)
|
||||
|> make
|
||||
|
||||
let update t ~var ~f =
|
||||
make (Map.update t.vars var ~f)
|
||||
|
|
|
@ -23,4 +23,7 @@ val add : t -> var:Var.t -> value:string -> t
|
|||
|
||||
val diff : t -> t -> t
|
||||
|
||||
val update : t -> var:string -> f:(string option -> string option) -> t
|
||||
|
||||
val sexp_of_t : t -> Sexp.t
|
||||
|
||||
|
|
Loading…
Reference in New Issue