Data update

This commit is contained in:
Ingy döt Net 2024-03-06 22:25:12 -08:00
parent ed705008a8
commit 0df55f9f24
2196 changed files with 32999 additions and 3075 deletions

View file

@ -1,4 +1,4 @@
import "/fmt" for Fmt
import "./fmt" for Fmt
var mapRange = Fn.new { |a, b, s| b.from + (s - a.from) * (b.to - b.from) / (a.to - a.from) }
@ -6,6 +6,5 @@ var a = 0..10
var b = -1..0
for (s in a) {
var t = mapRange.call(a, b, s)
var f = (t >= 0) ? " " : ""
System.print("%(Fmt.d(2, s)) maps to %(f)%(t)")
Fmt.print("$2d maps to $ h", s, t)
}