Pascal's Triangle with Ruby's Enumerator
Enumerator is a powerful standard library class doesn’t seem to get enough attention among Rubyists. Among other things, it can be used to generate infinite sequences in Ruby. In this blog post, we’ll examine how to use Enumerator to solve Pascal’s Triangle. https://rossta.net/blog/pascals-triangle-with-rubys-enumerator.html
Post a comment