
Are Functions Data? with Yehonathan Sharvit
Software Unscripted
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
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.