# Kotlin Sequences: An Illustrated Guide

DevFeed: [Kotlin Sequences: An Illustrated Guide](<https://devfeed.tech/articles/kotlin-sequences-an-illustrated-guide-25041.md>)

Original publisher: [Read original article](<https://typealias.com/guides/kotlin-sequences-illustrated-guide/>)

Author: author@typealias.com (Dave Leeds)

Published: 2019-03-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dave Leeds on Kotlin - typealias.com](<https://devfeed.tech/sources/dave-leeds-on-kotlin-typealias-com.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Code](<https://devfeed.tech/topics/code.md>), [coding](<https://devfeed.tech/topics/coding.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [code](<https://devfeed.tech/tags/code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [collection-operations](<https://devfeed.tech/tags/collection-operations.md>), [collections](<https://devfeed.tech/tags/collections.md>), [data](<https://devfeed.tech/tags/data.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [guide](<https://devfeed.tech/tags/guide.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [programming](<https://devfeed.tech/tags/programming.md>), [standard-library](<https://devfeed.tech/tags/standard-library.md>)

## AI overview

This illustrated Kotlin guide explains how sequences differ from normal collections through a crayon-factory analogy. It introduces a five-step collection-processing workflow involving filtering, labeling, taking the first five items, and collecting the results, then models the process in Kotlin.

## Source excerpt

You've probably come across Kotlin's sequences at one time or another. Maybe you've heard that they can process data more efficiently than normal collections. But have you ever wondered exactly what they do, how they achieve the efficiency, or when you should use them? In this article series, we're going to cover just about everything there is to know about them! In this article, we'll walk through a story that will help us visualize the difference between sequences and normal collections.