Software Unscripted cover image

Are Functions Data? with Yehonathan Sharvit

Software Unscripted

00:00

Getting a Field From a Map in Haskell

The simplest thing to retrieve a field from a map is to use the function called get. But there is another way is to put the map as the first element in the parenthesis. That actually kind of reminds me of like the Alan K style of object orientation where it's like you're sending a message to the map almost. Yeah, at least the way you're calling it, that's interesting. And also keyword functions enclosure or behavior as function keywords, field names, you can use them as functions. So if you want to retrieve the first name of a user, you have three ways. The first way is to get user first name. The second way is user first name and the

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app