Using guards in let .. in expressions

后端 未结 2 2143
[愿得一人]
[愿得一人] 2021-02-18 15:35

Sometimes I write code like this

solveLogic :: Int -> Int -> Int
solveLogic a b =
    let 
        x = 1
        brainiac
            | a >= x     = 1
          


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