RubyFlow The Ruby and Rails community linklog

persistent-💎: a ruby gem for beautiful immutable data structures

A gem with a simple objective: make programming with immutable data structures in Ruby as joyful and frictionless as using the built-in Array and Hash classes. So easy, in fact, that using immutable structures becomes the norm, rather than the exception. Persistent-💎 gives you a very tidy syntax for creating immutable: arrays (my_array = a💎[1, 2, 3]; hashes (my_hash = h💎[key1: 'foo', key2: 'bar']; and sets (my_set = s💎[:sephiroth, :kills, :aeris]). See project website for more details!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in