RubyFlow The Ruby and Rails community linklog

Enumerable#every - Symbol#to_proc's hot cousin

Example:    enum = [1.4, 2.4 ,3.4]    enum.map {|n| n.floor } #=> [1, 2, 3]    enum.map(&:floor) #=> [1, 2, 3]    enum.every.floor #=> [1, 2, 3] More details at mynyml.com (Github repository)

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