Control Structures in Scala

In the following lesson, you will be introduced to control structures.

Introduction

Control structures can be thought of as blocks of code which determine or dictate the flow in which statements (lines of code) are executed; they basically control the flow of code. For instance, a block of code can flow in a sequential manner and there is a control structure which ensures its statements are executed sequentially. A block of code can also flow in an iterative manner and there are control structures which ensure its statements are executed iteratively.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy