https://github.com/jrincayc/ucblogo-code
Raw File
Tip revision: 3c0acfb7440cb9aea93e56c9e5b135a010f0a617 authored by Barak A. Pearlmutter on 23 March 2023, 18:25:43 UTC
restrict uscan to numeric versions
Tip revision: 3c0acfb
iseq
;;; -*- logo -*-

to iseq :a :b
if not (:a > :b) [output iseq1 :a :b]
output map [[x] -1 * :x] iseq1 (-1 * :a) (-1 * :b)
end

to iseq1 :a :b
if :a > :b [output []]
output fput :a iseq1 :a + 1 :b
end

bury [iseq iseq1]
back to top