$< 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}}
Copyright © 2021 Jogjafile Inc.
Yes. It's an alias of
ARGFwhich inherits directly fromObjectand includesEnumerable.