↧
Answer by Mandorman for How to deal with a list of 'Maybe [values]' in Haskell?
Thanks a lot chi, it works perfectly. I just made a new function:describePaths situacio edges = case lookup situacio edges of Nothing -> [] Just locs -> map describePath locs.. and works pretty...
View ArticleAnswer by chi for How to deal with a list of 'Maybe [values]' in Haskell?
There might be some more advanced library helpers, but I think you should first learn how to handle Maybes in the most basic (and general) way: use pattern matching.case lookup situacio edges of...
View ArticleHow to deal with a list of 'Maybe [values]' in Haskell?
I tryied to adapt some exercises of the excelent book "Land of Lisp" of Conrad Barski in order to learn Haskell. The idea is to make a simple text game engine.Concretely I tried :type Clau = Stringtype...
View Article