https://github.com/jrincayc/ucblogo-code
Raw File
Tip revision: 07e7e89a4cfcdb7d1e78df005dd8069ab9133ace authored by Joshua Cogliati on 08 January 2023, 16:24:02 UTC
Merge pull request #144 from dmalec/ISSUE-143-CICD-ACTION-VERSION
Tip revision: 07e7e89
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