📜  函数式编程中匹配的好处 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:31.008000             🧑  作者: Mango

代码示例2
case runOperationOn someData of
   Just res -> putStrLn ("The operation was successful: " ++ res)
   Nothing  -> putStrLn "The operation failed!"