Archive: 2016/12

More on Racket Generators

I've been playing around, as I said, with Euler 9, which presented me with the question of how to generate Pythagorean triples—this is the interesting part of the problem (it's trivial, once you

Five Minutes

When I was a kid, conversations about purchases that I had with my father usually revolved around how many hours I had to work in order to afford something, where something was almost always a video g

Dynamic Lexical Scope

I'm working on Euler 9 right now, which is a search for the one Pythagorean triple that sums to 1000. This was a very natural segue into looking at Racket's support for generators—we want to gen