0

$< is used with map in the following code.

Is $< enumerable?

$<.map{|l|p (0..9).to_a.repeated_permutation(4).count{|m|m.inject(&:+)==l.to_i}}
shin
  • 31,901
  • 69
  • 184
  • 271

1 Answers1

2

Yes. It's an alias of ARGF which inherits directly from Object and includes Enumerable.

user229044
  • 232,980
  • 40
  • 330
  • 338