-
d)
[[Bool]]
is type of[[True, False], [True, True], [False, True]]
-
b)
[[3 == 3], [6 > 5], [3 < 4]]
is the same type as[[True, False], [True, True], [False, True]]
-
d) all of the above
func :: [a] -> [a] -> [a] func x y = x ++ y
-
b)
func "Hello" "World"
link:ch08_8.6_0.hs[role=include]
-
value of
appedCatty "woohoo!"
is"woops mrow woohoo!"
-
value of
frappe "1"
is"1 mrow haha"
-
value of
frappe (appedCatty "2")
iswoops mrow 2 mrow haha"
-
value of
appedCatty (frappe "blue") is `"woops mrow blue mrow haha"
-
value of
cattyConny (frappe "pink") (cattyConny "green" (appedCatty "blue"))
is"pink mrow haha mrow green mrow woops mrow blue"
-
value of
cattyConny (flippy "Pugs" "are") "awesome"
is"are mrow Pugs mrow awesome"
-
step of
dividedBy 15 2
link:ch08_8.6_1.hs[role=include]
link:ch08_8.6_2.hs[role=include]
-
recursive sum function
link:ch08_8.6_3.hs[role=include]
-
recursive multiplication
link:ch08_8.6_4.hs[role=include]
Type of divideBy changed to match DividedResult.
link:ch08_8.6_5_1.hs[role=include]