© Anjana Fernando and Lakmal Warusawithana 2020
A. Fernando, L. WarusawithanaBeginning Ballerina Programminghttps://doi.org/10.1007/978-1-4842-5139-3_3

3. Lists, Mappings, and Objects

Anjana Fernando1  and Lakmal Warusawithana2
(1)
Mountain View, CA, USA
(2)
Mountain View, USA
 

So far, we have been using simple types to implement our scenarios. In this chapter, we will be looking into the structural and behavioral types that are available in Ballerina. These types will help us in modeling and solving complex problems more efficiently.

There are also a few other special types that can be created, which are critical in Ballerina’s type system. Union types are one of them. Let’s start off by getting to know what they are and how we can use them.

Union Types ...

Get Beginning Ballerina Programming: From Novice to Professional 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.