Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1,14 @@
fs = ->(f : Int32 -> Int32, s : Array(Int32)) { s.map {|elt| f[elt] } }
f1 = ->(n : Int32) { n * 2 }
f2 = ->(n : Int32) { n * n }
fsf1 = fs.partial(f1)
fsf2 = fs.partial(f2)
[(0..3).to_a, (2..8).step(2).to_a].each do |arg|
[{fsf1, "fsf1"}, {fsf2, "fsf2"}].each do |fn , name|
puts "#{name} #{arg} = #{fn[arg]}"
end
puts
end