From bd4b9f540acc1988d66420c3bce6e02687b31660 Mon Sep 17 00:00:00 2001 From: Jim Date: Mon, 2 Feb 2015 18:10:51 -0500 Subject: [PATCH] refine note on sections --- topics/week1_advanced_notes.mdwn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/topics/week1_advanced_notes.mdwn b/topics/week1_advanced_notes.mdwn index 560a1c46..19745657 100644 --- a/topics/week1_advanced_notes.mdwn +++ b/topics/week1_advanced_notes.mdwn @@ -207,6 +207,8 @@ if we want to use `( + )`, we have to instead write: It may not be obvious now why this would ever be useful, but sometimes it will be. -Confession: actually, what I described here diverges a *tiny* bit from what OCaml and Haskell do. They wouldn't really write `(+) (x, y)` like I just did. Instead they'd write `(+) x y`. We will look at the difference between these next week. +All of these shorthands `(10 - )`, `( & ys)` and `( + )` are called "sections". I don't know exactly why. + +Confession: actually, what I described here diverges *a bit* from how OCaml and Haskell treat `( + )`. They wouldn't really write `(+) (x, y)` like I did. Instead they'd write `(+) x y`. We will look at the difference between these next week. -- 2.11.0