Skip to content

Commit

Permalink
deleted some new lines to make it succed in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasDS-0 committed Oct 12, 2021
1 parent eb4fb60 commit 345e679
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Chapter1.hs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ command in GHCi (short for ":type").
For example:
>>> :t False
False :: Bool
"::" in Haskell indicates that the type of the expression before, would be
specified after these symbols.
So, the output in this example means that 'False' has type 'Bool'.
Expand Down Expand Up @@ -227,7 +226,6 @@ ghci> 1 + 2
β™« NOTE: in reality, the type of the + operator is the following:
>>> :t (+)
(+) :: Num a => a -> a -> a
> It may look scary to you, but we will cover all this 'Num' and "=>" later. For
now, you can think of this as a polymorphic function β€” in this case, the
operator, that can work with any numeric type, including 'Ints, 'Doubles,
Expand Down Expand Up @@ -350,7 +348,6 @@ Implement the function that takes an integer value and returns the next 'Int'.
11
>>> next (-4)
-3
β™« NOTE: The current function body is defined using a special function called
"error". Don't panic, it is not broken. 'error' is like a placeholder, that
evaluates to an exception if you try evaluating it. And it also magically fits
Expand Down Expand Up @@ -403,7 +400,6 @@ Implement a function, that takes two numbers and returns the one closer to zero:
5
>>> closestToZero (-7) 3
3
πŸ•― HINT: You can use the 'abs' function and the __if-then-else__ Haskell syntax
for this task.
'if-then-else' is a language construct for an expression that returns only one
Expand All @@ -427,7 +423,6 @@ closestToZero x y = if abs x < abs y
Write a function that returns the middle number among three given numbers.
>>> mid 3 1 2
2
πŸ•― HINT: When checking multiple conditions, it is more convenient to use the
language construct called "guards" instead of multiple nested 'if-then-else'
expressions. The syntax of guards is the following:
Expand Down Expand Up @@ -512,7 +507,6 @@ Implement a function that returns the sum of the last two digits of a number.
7
>>> sumLast2 1
1
Try to introduce variables in this task (either with let-in or where) to avoid
specifying complex expressions.
-}
Expand All @@ -536,7 +530,6 @@ Implement a function that returns the first digit of a given number.
2
>>> firstDigit 5623
5
You need to use recursion in this task. Feel free to return to it later, if you
aren't ready for this boss yet!
-}
Expand Down

0 comments on commit 345e679

Please sign in to comment.