Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue