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}}
4

1 回答 1

2

是的。ARGF它是直接继承自Object并包含的别名Enumerable

于 2014-05-27T11:50:08.540 回答