https://github.com/maxdeviant/interior
👺 Interior mutability in Gleam
https://github.com/maxdeviant/interior
Last synced: 19 days ago
JSON representation
👺 Interior mutability in Gleam
- Host: GitHub
- URL: https://github.com/maxdeviant/interior
- Owner: maxdeviant
- License: mit
- Created: 2025-07-26T15:57:32.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-07-26T17:18:59.000Z (7 months ago)
- Last Synced: 2025-09-14T22:56:54.220Z (6 months ago)
- Language: Gleam
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# interior
[](https://hex.pm/packages/interior)
[](https://hexdocs.pm/interior/)


👺 Interior mutability in Gleam.
## ⚠️ Disclaimer
Types in Gleam are immutable for a reason! As such, you should use immutable data structures whenever possible.
Don't use this library to shortcut structuring your code and APIs in a functional way that embraces immutability!
That being said, there are some scenarios where it can be handy to have shared mutable state, and in those situations this library provides a target-agnostic way for achieving interior mutability.