-
Book Overview & Buying
-
Table Of Contents
Learn Bosque Programming
By :
In this section, we will briefly walk through the process of iteration in Bosque. We will not dive deep into the details here as we will cover it in full in Chapter 10, Iterative Processing and Recursion. Here, we will only introduce the concept of available methods and iterators with a simple example.
The first thing to note is that in Bosque, there are no structured loops. Yes, you read correctly – not a single loop. Instead, we have a variety of high-level functions and methods that help us do some iterative job. This means that if we want to iterate over a list of numbers and do something with them, we can use one of many methods defined in the List entity. We don't have to write an imperative loop and worry about edge cases ourselves. We must pick one of the methods available for us and let the computer figure out the best way to perform a task. This is a pretty convenient way to do iterative processing. We only describe our...