Unwrapping datatypes in Haskell without extraneous code

前端 未结 3 1335
臣服心动
臣服心动 2021-01-11 12:21

Say I have

x = Just 2

Is there a way (preferrably a builtin mechanism/function) to use x in a single statement such that if it is a Just, t

3条回答
提交回复
热议问题