Skip to content

Commit baef6fe

Browse files
committed
TD3: change slide order, for better flow
1 parent dc55b04 commit baef6fe

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

slides/course-03.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -314,26 +314,6 @@ balance' = foldr (\op soFar -> toInt op + soFar) 0
314314

315315
---
316316

317-
# Composition
318-
319-
Because functions are so central in functional programming, it is crucial
320-
to combine them easily.
321-
322-
```bash
323-
> import Data.Function
324-
> :type (&)
325-
(&) :: a -> (a -> b) -> b
326-
```
327-
328-
- `(&)` means it is an operator (like `+`, `-`, etc.), so it is written between its arguments: `x & f`,
329-
in infix position.
330-
331-
???
332-
333-
Ask whether they see the relationship with function application
334-
335-
---
336-
337317
# Partial application
338318

339319
```bash
@@ -368,6 +348,26 @@ When writing functions:
368348

369349
# Composition
370350

351+
Because functions are so central in functional programming, it is crucial
352+
to combine them easily.
353+
354+
```bash
355+
> import Data.Function
356+
> :type (&)
357+
(&) :: a -> (a -> b) -> b
358+
```
359+
360+
- `(&)` means it is an operator (like `+`, `-`, etc.), so it is written between its arguments: `x & f`,
361+
in infix position.
362+
363+
???
364+
365+
Ask whether they see the relationship with function application
366+
367+
---
368+
369+
# Composition
370+
371371
```bash
372372
> :type filter
373373
filter :: (a -> Bool) -> [a] -> [a]

0 commit comments

Comments
 (0)