Is there a equivalent in the Ruby standard API for Java's Collections.unmodifiableList
and Collections.unmodifiableMap
?
Ruby equivalent of Java's Collections.unmodifiableList and Collections.unmodifiableMap
193 views Asked by razenha At
2
Use
freeze
API:You can also use the hamster gem for other immutable data structures.