mirror of
https://github.com/Smaug123/WoofWare.PrattParser
synced 2025-10-05 17:38:41 +00:00
10 lines
271 B
Forth
10 lines
271 B
Forth
namespace WoofWare.PrattParser
|
|
|
|
[<RequireQualifiedAccess>]
|
|
module internal Map =
|
|
// For compat reasons, we target a very low FSharp.Core.
|
|
let change k f m =
|
|
match f (Map.tryFind k m) with
|
|
| None -> Map.remove k m
|
|
| Some v -> Map.add k v m
|