Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$<mapは、次のコードで使用されています。
$<
map
$<列挙可能ですか?
$<.map{|l|p (0..9).to_a.repeated_permutation(4).count{|m|m.inject(&:+)==l.to_i}}
はい。ARGFから直接継承し、Objectを含むエイリアスですEnumerable。
ARGF
Object
Enumerable