SICP Section 3.3 – 3.5 : Found a bug in memq


1. Is memq broken? memq is an in-built list search function; it finds the first occurrence of a key in a list and returns a new list starting from that key. Now that you know what memq does, lets look at some weird behaviour Building on that foundation leads to the following conundrum memq tests whether the key exists in the … Continue reading SICP Section 3.3 – 3.5 : Found a bug in memq

SICP Section 2.2: New ideas and thoughts about programming


Here are 5 points to think about, hopefully they'll trigger an 'aha' moment. 1. Leveraging the 'Closure' concept in programming I am not talking about the 'closure' concept from programming (the one that involves free variables). This refers to the 'closure' concept from mathematics and the power it brings to programming languages. Mathematically, a set is closed under an … Continue reading SICP Section 2.2: New ideas and thoughts about programming