Top 1,000 Features Creators Resources Blog Explore Download
GitHub icon

Monad

< >
Example from Haskell:
-- https://stackoverflow.com/questions/44965/what-is-a-monad parseExpr = parseString <|> parseNumber parseString = do char '"' x <- many (noneOf "\"") char '"' return (StringValue x) parseNumber = do num <- many1 digit return (NumberValue (read num))

Languages with Monad include Haskell

Read more about Monad on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language About Acknowledgements Extensions Day 624 feedback@pldb.io