Browse Source

Add ch06/01ex01 and ch06/02ex01

master
Piotr Orzechowski 4 years ago
parent
commit
9f36c12dee
2 changed files with 6 additions and 0 deletions
  1. 2
    0
      ch06/01ex01.txt
  2. 4
    0
      ch06/02ex01.txt

+ 2
- 0
ch06/01ex01.txt View File

@@ -0,0 +1,2 @@
1. "second" takes some function of type "b -> c" and some pair of type "(d, b)", applies
the function to the second pair element and returns a new pair of type "(d, c)".

+ 4
- 0
ch06/02ex01.txt View File

@@ -0,0 +1,4 @@
2. (,) :: a -> b -> (a, b)
This function creates a pair.
(,,) :: a -> b -> c -> (a, b, c)
This function creates a triple.

Loading…
Cancel
Save