Homepage
Open in app
Sign in
Get started
The Kotlin Primer
An opinionated guide to learning the Kotlin language
Follow
Table of Contents
Table of Contents
A way to quickly navigate the Primer
Gabriel Shanahan
Sep 11, 2022
Latest chapters
Modeling States and Structure: Considerations
Modeling States and Structure: Considerations
Things to take into consideration when using types to make the states and shapes of entities explicit in your code.
Gabriel Shanahan
Dec 3, 2022
Sequences: Iterable vs. Sequence vs. Java Stream
Sequences: Iterable vs. Sequence vs. Java Stream
A discussion on performance of Sequence vs. Iterable, when to use which, and the differences between Sequence and Java Streams.
Gabriel Shanahan
Nov 17, 2022
Sequences: Yield vs. Return & How Pausing Functions Work
Sequences: Yield vs. Return & How Pausing Functions Work
An introduction to the sequence method, an explanation of yield vs. return, a look into how to implement functions which can pause using…
Gabriel Shanahan
Nov 17, 2022
Sequences: How They Work & How To Use Them
Sequences: How They Work & How To Use Them
How to create a Sequence, how they work under the hood & the difference between intermediate and terminal operations, and how laziness and…
Gabriel Shanahan
Nov 17, 2022
Sequences: Why We Need Them
Sequences: Why We Need Them
A practical example demonstrating how collections based on Iterable fall short, a novel explanation of why this happens using traversal…
Gabriel Shanahan
Nov 17, 2022
Collection Operations: Grouping
Collection Operations: Grouping
An introduction to the most important functions for grouping: groupBy, partition, groupingBy, fold, reduce, aggregate and their variants.
Gabriel Shanahan
Nov 1, 2022
Collection Operations: Aggregators
Collection Operations: Aggregators
An introduction to the most important functions for aggregation: fold, reduce, average, count, sum, min, max, and their variants. A quick…
Gabriel Shanahan
Oct 29, 2022
About The Kotlin Primer
Latest Stories
Archive
About Medium
Terms
Privacy