<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Sequences on BradCypert.com</title>
    <link>https://www.bradcypert.com/tags/sequences/</link>
    <description>Recent content in Sequences on BradCypert.com</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 27 Dec 2022 16:51:00 -0500</lastBuildDate>
    <atom:link href="https://www.bradcypert.com/tags/sequences/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Sequence: A Kotlin Type</title>
      <link>https://www.bradcypert.com/sequence-a-kotlin-type/</link>
      <pubDate>Sat, 03 Nov 2018 00:00:00 +0000</pubDate>
      <guid>https://www.bradcypert.com/sequence-a-kotlin-type/</guid>
      <description>&lt;p&gt;Kotlin, despite being an object oriented language, offers a ton of support for Functional paradigms. One of the most common functional paradigms involves using a combination of &lt;code&gt;map&lt;/code&gt;, &lt;code&gt;filter&lt;/code&gt;, and &lt;code&gt;reduce&lt;/code&gt; on Iterable types. However, Kotlin uses extension functions on Java Collections to create these functions in their standard library. That means that when you call &lt;code&gt;map&lt;/code&gt; on a list, you’ll return a new list. This is usually intended, however, it can become problematic when chaining multiple operations on the same list — You’ll create a ton of intermediate lists!&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
