2020-10-02から1日間の記事一覧
ifを使った分岐 isAdult age = if age >= 20 then True else False ガード節を使った分岐 getRelation a b | a > b = "a is bigger than b" | a == b = "a equals b" | a < b = "a is smaller than b"
ifを使った分岐 isAdult age = if age >= 20 then True else False ガード節を使った分岐 getRelation a b | a > b = "a is bigger than b" | a == b = "a equals b" | a < b = "a is smaller than b"