Added README. Modify output of complexnums.
This commit is contained in:
parent
9e9e083bdc
commit
6bef44a9c4
3 changed files with 6 additions and 1 deletions
|
@ -1 +1,3 @@
|
|||
# complexnums
|
||||
|
||||
Take two complex numbers of the form a+bi, then multiply them and add them.
|
||||
|
|
|
@ -56,8 +56,9 @@ someFunc = showResults <$> firstNumber <*> secondNumber >>= putStrLn
|
|||
where
|
||||
showResults f s =
|
||||
[
|
||||
"Added: ",
|
||||
addComplex f s & show,
|
||||
"\n",
|
||||
"\nMultiplied: ",
|
||||
multiplyComplex f s & show
|
||||
] & concat
|
||||
firstNumber = ("Enter a complex number in the form of a + bi: " & prompt(=~ complexNumber)) <&> stringToComplex
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
# json-parser
|
||||
|
||||
Take a JSON document from stdin and produce an object hierarchy for it.
|
||||
|
|
Loading…
Add table
Reference in a new issue