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