Loop

We will now move on to looping constructs. Consider a simple for loop, as follows:

The head node contains a for symbol. There are two arguments: the first one contains the expression about the loop and the second one contains a block expression. 

Get Hands-On Design Patterns and Best Practices with Julia now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.