raganwald.com raganwald.com

Enumerations, Denumerables, and Cardinals

Warning: This is an unfinished work. Feel free to share it on Twitter or other conventional social media, but I ask you not to post it on Hacker News or Reddit until it is finished. enumerables and enumerations In programming language jargon, an enumerable is a value that can be accessed sequentially, or iterated over. Different languages use the term in slightly different ways, although they all have some relation to its basic...

raganwald.com raganwald.com

Going Under the Hood with Balanced Parentheses

As we discussed in both Pattern Matching and Recursion, a popular programming “problem” is to determine whether a string of parentheses is “balanced:” Given a string that consists of open and closed parentheses, write a function that determines whether the parentheses in the string are balanced. “Balanced” parentheses means that each opening symbol has a corresponding closing symbol and the pairs of parentheses are...

raganwald.com raganwald.com

Going Under the Hood with Balanced Parentheses

As we discussed in both Pattern Matching and Recursion, a popular programming “problem” is to determine whether a string of parentheses is “balanced:”1 Given a string that consists of open and closed parentheses, write a function that determines whether the parentheses in the string are balanced. “Balanced” parentheses means that each opening symbol has a corresponding closing symbol and the pairs of parentheses are...