Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Map-range/Quackery/map-range.quackery
Normal file
18
Task/Map-range/Quackery/map-range.quackery
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[ $ "bigrat.qky" loadfile ] now!
|
||||
|
||||
[ do over -
|
||||
2swap
|
||||
do over -
|
||||
unrot
|
||||
dip [ $->v drop ]
|
||||
n->v v-
|
||||
rot n->v v/
|
||||
rot n->v v*
|
||||
rot n->v v+ ] is maprange ( $ [ [ --> n/d )
|
||||
|
||||
$ "0 1 2 3 4 5 6 7 8 9 10"
|
||||
nest$
|
||||
witheach
|
||||
[ dup echo$ say " maps to "
|
||||
' [ 0 10 ] ' [ -1 0 ] maprange
|
||||
7 point$ echo$ cr ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue