Category code

Collectors in Scheme

Collector functions are a functional way of processing and accumulating collections of data. I recently encountered this pattern while going through the book The Little Schemer. In the discussion of lambdas, there’s a function named multirember&co, which stands for “remove multiple members and collect”. Basically, it removes multiple elements from a list and collects the removed elements."

Read moreā€¦