Category code

Monkey Business

I’ve written my first programming language interpreter! Monkey is a programming language described in the excellent books Writing An Interpreter In Go and Writing A Compiler In Go, by Thorsten Ball.

Read more…

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…