From b106597e328d8b8d630c522d520496b8a223c3fa Mon Sep 17 00:00:00 2001 From: Arkadiusz Hypki Date: Mon, 3 Jun 2024 15:32:03 +0200 Subject: [PATCH] 'zaliczenie' --- 08_Haskell/ex1-tutorial.hs | 28 ++++++++++++++-------------- zaliczenie | 3 ++- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/08_Haskell/ex1-tutorial.hs b/08_Haskell/ex1-tutorial.hs index 42db905..af311c0 100755 --- a/08_Haskell/ex1-tutorial.hs +++ b/08_Haskell/ex1-tutorial.hs @@ -1,7 +1,7 @@ #!/usr/bin/env runhaskell -main = do - print [1..10] +-- main = do +-- print [1..10] @@ -19,7 +19,7 @@ main = do -- fact :: Integer -> Integer -- fact n | n == 0 = 1 --- | n /= 0 = n * fact (n-1) +-- | n /= 0 = n * fact (n-1) -- main = do -- putStrLn "The factorial of 5 is:" -- print (fact 5) @@ -104,19 +104,19 @@ main = do --- eveno :: Int -> Bool --- noto :: Bool -> String +eveno :: Int -> Bool +noto :: Bool -> String --- eveno x = if x `rem` 2 == 0 --- then True --- else False --- noto x = if x == True --- then "This is an even Number" --- else "This is an ODD number" +eveno x = if x `rem` 2 == 0 + then True +else False +noto x = if x == True + then "This is an even Number" +else "This is an ODD number" --- main = do --- putStrLn "Example of Haskell Function composition" --- print ((noto.eveno)(16)) +main = do + putStrLn "Example of Haskell Function composition" + print ((noto.eveno)(16)) diff --git a/zaliczenie b/zaliczenie index 1e0a4ff..8715f25 100644 --- a/zaliczenie +++ b/zaliczenie @@ -6,4 +6,5 @@ Na zaliczenia wybierzemy termin naszych ostatnich zajęć. Więcej info o warunkach zaliczenia: * przynajmniej 4 paradygmaty na ocenę 4.0 -* na lepszą ocenę muszą być jakieś ciekawe bajery \ No newline at end of file +* na lepszą ocenę muszą być jakieś ciekawe bajery +* w ramach wyjątku może to być inna aplikacja niż todo, ale musi ona implementować również różne paradygmaty programowania \ No newline at end of file