https://github.com/jrincayc/ucblogo-code
Tip revision: e023b8fcadc2e1b35a37b911250b251e0ec1da0b authored by Joshua Cogliati on 31 December 2020, 15:53:53 UTC
Merge pull request #87 from jrincayc/update_version
Merge pull request #87 from jrincayc/update_version
Tip revision: e023b8f
filter
;;; -*- logo -*-
to filter :filter.template :template.list [:template.number 1] ~
[:template.lists (list :template.list)]
if emptyp :template.list [op :template.list]
if apply :filter.template (list first :template.list) ~
[op combine (first :template.list) ~
(filter :filter.template bf :template.list :template.number+1)]
op (filter :filter.template bf :template.list :template.number+1)
end
to ?rest [:which 1]
output bf item :which :template.lists
end
bury [filter ?rest]