RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

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