Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

benefits of matching in functional programming

case runOperationOn someData of
   Just res -> putStrLn ("The operation was successful: " ++ res)
   Nothing  -> putStrLn "The operation failed!"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #benefits #matching #functional #programming
ADD COMMENT
Topic
Name
9+9 =