https://github.com/jrincayc/ucblogo-code
Raw File
Tip revision: 0ba6ad1629f94a89f98e2bf884c1388c6ee78b6d authored by Joshua Cogliati on 29 December 2021, 15:19:51 UTC
Updating version to 6.2.2 (#120)
Tip revision: 0ba6ad1
map
;;; -*- logo -*-

to map :map.template [:template.lists] 2
op map1 :template.lists 1
end

to map1 :template.lists :template.number
if emptyp first :template.lists [output first :template.lists]
output combine (apply :map.template firsts :template.lists) ~
               (map1 bfs :template.lists :template.number+1)
end

to ?rest [:which 1]
output bf item :which :template.lists
end

bury [map map1 ?rest]
back to top