@@ -168,7 +168,7 @@ First, we can evaluate an expression involving `nextWeekday` in a REPL.
168
168
169
169
We show Idris's responses in comments , but, if you have a computer handy , this
170
170
would be an excellent moment to fire up the Idris interpreter under your
171
- favorite Idiris -friendly text editor -- such as Emacs or Vim -- and try this for
171
+ favorite Idris -friendly text editor -- such as Emacs or Vim -- and try this for
172
172
and try this for yourself. Load this file, `Basics.lidr` from the book's
173
173
accompanying Idris sources, find the above example , submit it to the Idris REPL ,
174
174
and observe the result .
@@ -204,7 +204,7 @@ the point on the resultant hole to have Idris solve the proof for you.)
204
204
\todo[inline]{Verify the "main uses " claim.}
205
205
206
206
Third, we can ask Idris to _generate_ , from our definition, a program in some
207
- other, more conventional , programming (C, Javascript and Node are bundled with
207
+ other, more conventional , programming (C, JavaScript and Node are bundled with
208
208
Idris) with a high-performance compiler . This facility is very interesting,
209
209
since it gives us a way to construct _fully certified_ programs in mainstream
210
210
languages. Indeed, this is one of the main uses for which Idris was developed .
@@ -439,9 +439,9 @@ return `k`."
439
439
> minusTwo (S (S k )) = k
440
440
441
441
Because natural numbers are such a pervasive form of data , Idris provides a tiny
442
- bit of built-in magic for parsing and printing them: ordinary arabic numerals
442
+ bit of built-in magic for parsing and printing them: ordinary Arabic numerals
443
443
can be used as an alternative to the "unary" notation defined by the
444
- constructors `S` and `Z`. Idris prints numbers in arabic form by default :
444
+ constructors `S` and `Z`. Idris prints numbers in Arabic form by default :
445
445
446
446
```idris
447
447
λΠ> S (S (S (S Z )))
@@ -545,7 +545,7 @@ minus (S k) (S j) = minus k j
545
545
546
546
\todo[inline]{Verify this .}
547
547
548
- The `_` in the first line is a _wilcard pattern_ . Writing `_` in a pattern is
548
+ The `_` in the first line is a _wildcard pattern_ . Writing `_` in a pattern is
549
549
the same as writing some variable that doesn't get used on the right-hand side .
550
550
This avoids the need to invent a bogus variable name .
551
551
\color{black}
0 commit comments