loading...

re: The Maybe data type in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Yes, I will have to add checks. But I have to add checks for this too, the instance of Nothing will have to be returned too for all the empty array...

Yeah I don't think I'm able to explain the idea to you well enough; I hope you find the right resources online! Just to set the right context; no; you will not have to add any checks if you're using ADTs and mapping over them. The reason to use them is to remove all these unnecessary checks.

code of conduct - report abuse