In this exercise you are to use ghci
to evaluate several Haskell expressions (below)
and compile a list of observations about Haskell based on what you see.
Note: This exercise is to be entirely experimental. Don't Google, read documentation, etc. It's just you and ghci
!
As mentioned in Piazza @12, if you haven't installed Haskell on your machine, you can run ghci on lectura.
A single e-mail message to 372s18@cs... with
3 + 4
3 * 4.5
it + it
it /= 3
3 > 4 || 5 < 7
not 3 < 4
2^3^5
2^^3
2**3
"abc" + 3
"abc" ++ "xyz"
"testing"!!3
10 `div` 3 (div
is surrounded with backquotes)
(+) 3 4
:help
If any group members know Python: What's a fundamental difference between help()
in Python and :help
in ghci
?