AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Simplest Building Block in Functional Programming
The function that I referred to as convert could actually be map in this case right so map takes an A and answers AB exactly so we're just mapping one to another now an interesting thing about map is basically what you do is you map over let's say a collection for one that you can map over anything. You don't have to return a an actual different type it could be like a conversion or a mapping from a list of numbers that you want to double but B just represents that there is a new output for what you passed in as input.