Day 2: Getting Assimilated
Yesterday we looked at Julia’s basic types and operators, and we spent quite a lot of time with its arrays. Julia’s basic data structures are versatile, but it has even more to offer.
First we’ll quickly review control flow, which should feel quite familiar. We’ll also hit abstract and user-defined types and learn all about functions and multiple dispatch.
Finally, we’ll wrap up the day by playing with Julia’s concurrency features, which Julia has assimilated from languages like Erlang.
Control Flow
Julia’s if, while, and for are pretty standard. Their syntax feels like a pleasant mix of Ruby and Python. Julia’s for loops are able to iterate over a variety of things, which is quite handy.
Let’s look at branching with ...
Get Seven More Languages in Seven Weeks 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.