I don&#x27;t know category theory, so I defer to more knowledgeable people here, but that sounds strange:
&quot;Functor it understands how to take doStuff and execute it on the value inside itself, then spit out a new Optional. You don&#x27;t lose the int-ness or optional-ness.&quot;
So if I map a function, that takes an int and returns a string over an array of ints, this array stops being a functor? Or is it just a Swift thing?<p>And, as always, I urge people spend an hour of their life and get the explanation of all this from someone who knows the math but still able to explain this in plain English:
<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ZhuHCtR3xq8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ZhuHCtR3xq8</a>
To the best of my limited knowledge, it&#x27;s all 100% correct.