This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [] | |
; outright improvement of collect mezzanine's performance and RAM footprint | |
; the compiled default "collect" | |
collect1: :collect | |
; the interpreted default "collect" | |
collect2: func spec-of :collect body-of :collect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [] | |
dive: function [path action [block!] filter [block!]][ | |
bind action 'path | |
if filter [bind filter 'path] | |
foreach file read path [ | |
if dir? file [dive append copy path file action filter] | |
if any [not filter do filter][do action] | |
] |