Quantcast
Channel: How to deal with a list of 'Maybe [values]' in Haskell? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


How 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>