tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.02k stars 48 forks source link

added apply-list #158

Closed porky11 closed 7 years ago

porky11 commented 7 years ago

A useful macro I often use for writing macros on lists of similar objets. Similar to 'walk-nodes' but more powerful. Example macros may be seen in my /dale-extensions and maybe some other programs

tomhrr commented 7 years ago

Thanks, this has been added (https://github.com/tomhrr/dale/commit/c9309bf9ed9c3e86820e86a18908e4ec9074d2a2). The function has been renamed to map-nodes, too, for consistency with walk-nodes. It's in macros, rather than macros-core, since those two modules have been merged since this PR was submitted.