https://github.com/jrincayc/ucblogo-code
Raw File
Tip revision: b2685caa788579e22d7176d3d3678494be54a404 authored by Joshua J. Cogliati on 21 December 2019, 04:06:10 UTC
Check for messages in executable directory.
Tip revision: b2685ca
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