Browse Source

Add ch06/01ex01 and ch06/02ex01

Piotr Orzechowski 3 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
+1. "second" takes some function of type "b -> c" and some pair of type "(d, b)", applies
2
+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 @@
1
+2. (,) :: a -> b -> (a, b)
2
+   This function creates a pair.
3
+   (,,) :: a -> b -> c -> (a, b, c)
4
+   This function creates a triple.

Loading…
Cancel
Save