dafny-lang / libraries

Libraries useful for Dafny programs
Other
43 stars 25 forks source link

Mutable maps via Java extern #87

Closed stefan-aws closed 1 year ago

stefan-aws commented 1 year ago

Per request, adds support for mutable maps by interfacing with Java. Partly follows https://github.com/dafny-lang/dafny/wiki/Modeling-External-State-Correctly and https://github.com/dafny-lang/libraries/tree/master/src/FileIO.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

robin-aws commented 1 year ago

Oh one other thing for later: users might expect more to find this under "Collections". We may want to consider that when we make a copy for this under DafnyCore as well.