Haskell語言Prelude模塊中函數maybe的用法及代碼示例。 用法類型: a -> (b -> a) -> Maybe b -> a. 示例1:. 輸入: maybe 5 negate (lookup 1 [(1,10),(2,20)]).
確定! 回上一頁