Chapter 10: Iterative Processing and Recursion
I bet the first time you read that there are no loops in Bosque, you were confused. And you probably were even more confused when you read that there are operations on concepts such as List that look like they are doing some iterative work. It wouldn't come as a surprise to me if you were asking yourself, What is going on here? Does Bosque support iteration or not? In this chapter, we will shed some light on this topic as well as recursion. First, we will learn why (and if) there are no loops available and how we can solve various problems related to iteration in Bosque. Next, we will take a closer look at recursion and restrictions that Bosque sets to simplify recursive calls in our programs – we will simply recall and slightly expand the knowledge that you gained in Chapter 3, Bosque Key Features. We will also cover the NSIterate
namespace and its implemented methods.
Here is a list of topics that we are going to cover...