Skip to content

Commit 8a434e9

Browse files
coalton-docs-botstylewarning
authored andcommitted
Update Coalton documentation for coalton-lang/coalton@7ffbd50
1 parent a6287b4 commit 8a434e9

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

content/reference.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2743,7 +2743,7 @@ Note: Hash only considers the primal component in order to be consistent with Eq
27432743
<code><a href="#into-class">Into</a> :A :B</code>
27442744

27452745

2746-
`INTO` imples *every* element of `:a` can be represented by an element of `:b`. This conversion might not be bijective (i.e., there may be elements in `:b` that don't correspond to any in `:a`).
2746+
`INTO` implies *every* element of `:a` can be represented by an element of `:b`. This conversion might not be bijective (i.e., there may be elements in `:b` that don't correspond to any in `:a`).
27472747

27482748
Methods:
27492749
- <code>INTO :: (:A &rarr; :B)</code>
@@ -2901,7 +2901,7 @@ Methods:
29012901
<code>(<a href="#into-class">Into</a> :A :B) (<a href="#into-class">Into</a> :B :A) &rArr; <a href="#iso-class">Iso</a> :A :B</code>
29022902

29032903

2904-
Opting into this marker typeclass imples that the instances for `(Into :a :b)` and `(Into :b :a)` form a bijection.
2904+
Opting into this marker typeclass implies that the instances for `(Into :a :b)` and `(Into :b :a)` form a bijection.
29052905

29062906
Methods:
29072907
<details>
@@ -3401,7 +3401,7 @@ Is `x` the default item of its type?
34013401
#### <a href="#defaulting-unwrap-value"><code>(DEFAULTING-UNWRAP CONTAINER)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/classes.lisp#L408-L412">src</a></sub></sup><a name="defaulting-unwrap-value"></a>
34023402
<code>&forall; :A :B. (<a href="#unwrappable-class">Unwrappable</a> :A) (<a href="#default-class">Default</a> :B) &rArr; ((:A :B) &rarr; :B)</code>
34033403

3404-
Unwrap an `unwrappable`, returning `(default)` of the wrapped type on failure.
3404+
Unwrap an `unwrappable`, returning `(default)` of the wrapped type on failure.
34053405

34063406

34073407

@@ -4014,7 +4014,7 @@ The `UFix` in [0, `count`) which, when `variable` is bound to it, results in the
40144014

40154015
#### <a href="#coalton-experimental-loops-besttimes-macro"><code>BESTTIMES ((VARIABLE COUNT BETTER?) &amp;BODY BODY)</code></a> <sup><sub>[MACRO]</sub></sup><a name="coalton-experimental-loops-besttimes-macro"></a>
40164016

4017-
The result of evaluating `body` with `variable` bound to a `UFix` in [0, `count`) that is `better?` than the result of evaluating `body` with `variable` bound to the rest of the `UFix`s in [0, `count`)..
4017+
The result of evaluating `body` with `variable` bound to a `UFix` in [0, `count`) that is `better?` than the result of evaluating `body` with `variable` bound to the rest of the `UFix`s in [0, `count`).
40184018

40194019

40204020

@@ -4135,7 +4135,7 @@ Does `body` evaluate to `True` for `variable` bound to every `UFix` in [0, `coun
41354135

41364136
#### <a href="#coalton-experimental-loops-prodtimes-macro"><code>PRODTIMES ((VARIABLE COUNT) &amp;BODY BODY)</code></a> <sup><sub>[MACRO]</sub></sup><a name="coalton-experimental-loops-prodtimes-macro"></a>
41374137

4138-
The product of `body` for `variable` bount to every `UFix` in [0, `count`).
4138+
The product of `body` for `variable` bound to every `UFix` in [0, `count`).
41394139

41404140

41414141

@@ -4159,7 +4159,7 @@ Does `body` evaluate to `True` for `variable` bound to some `UFix` in [0, `count
41594159

41604160
#### <a href="#coalton-experimental-loops-sumtimes-macro"><code>SUMTIMES ((VARIABLE COUNT) &amp;BODY BODY)</code></a> <sup><sub>[MACRO]</sub></sup><a name="coalton-experimental-loops-sumtimes-macro"></a>
41614161

4162-
The sum of `body` for `variable` bount to every `UFix` in [0, `count`).
4162+
The sum of `body` for `variable` bound to every `UFix` in [0, `count`).
41634163

41644164

41654165

@@ -4938,7 +4938,7 @@ Returns the number of entries in HM.
49384938
#### <a href="#difference-value"><code>(DIFFERENCE A B)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/hashmap.lisp#L769-L771">src</a></sub></sup><a name="difference-value"></a>
49394939
<code>&forall; :A :B. <a href="#hash-class">Hash</a> :A &rArr; ((<a href="#hashmap-type">HashMap</a> :A :B) &rarr; (<a href="#hashmap-type">HashMap</a> :A :B) &rarr; (<a href="#hashmap-type">HashMap</a> :A :B))</code>
49404940

4941-
Raturns a HashMap that contains mappings in `a` but not in `b`.
4941+
Returns a HashMap that contains mappings in `a` but not in `b`.
49424942

49434943

49444944

@@ -4956,7 +4956,7 @@ Returns True if a hashmap HM is empty, False if not.
49564956
#### <a href="#entries-value"><code>(ENTRIES HM)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/hashmap.lisp#L707-L709">src</a></sub></sup><a name="entries-value"></a>
49574957
<code>&forall; :A :B. <a href="#hash-class">Hash</a> :A &rArr; ((<a href="#hashmap-type">HashMap</a> :A :B) &rarr; (<a href="#iterator-type">Iterator</a> (<a href="#tuple-type">Tuple</a> :A :B)))</code>
49584958

4959-
Returns an interator to iterate over all entries in hashmap hm.
4959+
Returns an iterator over all entries in hashmap hm.
49604960

49614961

49624962

@@ -4986,7 +4986,7 @@ The entries from A remains in the result.
49864986
#### <a href="#keys-value"><code>(KEYS HM)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/hashmap.lisp#L695-L697">src</a></sub></sup><a name="keys-value"></a>
49874987
<code>&forall; :A :B. <a href="#hash-class">Hash</a> :A &rArr; ((<a href="#hashmap-type">HashMap</a> :A :B) &rarr; (<a href="#iterator-type">Iterator</a> :A))</code>
49884988

4989-
Returns an interator to iterate over all the keys in a hashmap hm.
4989+
Returns an iterator over all the keys in a hashmap hm.
49904990

49914991

49924992

@@ -5080,7 +5080,7 @@ modified `HashMap`.
50805080
#### <a href="#values-value"><code>(VALUES HM)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/hashmap.lisp#L701-L703">src</a></sub></sup><a name="values-value"></a>
50815081
<code>&forall; :A :B. <a href="#hash-class">Hash</a> :A &rArr; ((<a href="#hashmap-type">HashMap</a> :A :B) &rarr; (<a href="#iterator-type">Iterator</a> :B))</code>
50825082

5083-
Returns an interator to iterate over all the values in a hashmap hm.
5083+
Returns an iterator over all the values in a hashmap hm.
50845084

50855085

50865086

@@ -5089,7 +5089,7 @@ Returns an interator to iterate over all the values in a hashmap hm.
50895089
#### <a href="#xor-value"><code>(XOR A B)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/hashmap.lisp#L774-L784">src</a></sub></sup><a name="xor-value"></a>
50905090
<code>&forall; :A :B. <a href="#hash-class">Hash</a> :A &rArr; ((<a href="#hashmap-type">HashMap</a> :A :B) &rarr; (<a href="#hashmap-type">HashMap</a> :A :B) &rarr; (<a href="#hashmap-type">HashMap</a> :A :B))</code>
50915091

5092-
Raturns a HashMap that contains mappings either in `a` or in `b`,
5092+
Returns a HashMap that contains mappings either in `a` or in `b`,
50935093
but not in both.
50945094

50955095

@@ -5422,7 +5422,7 @@ Returns `True` if ITER is empty.
54225422
#### <a href="#filter!-value"><code>(FILTER! KEEP? ITER)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/iterator.lisp#L352-L360">src</a></sub></sup><a name="filter!-value"></a>
54235423
<code>&forall; :A. ((:A &rarr; <a href="#boolean-type">Boolean</a>) &rarr; (<a href="#iterator-type">Iterator</a> :A) &rarr; (<a href="#iterator-type">Iterator</a> :A))</code>
54245424

5425-
Return an iterator over the elements from ITER for which KEEP?returns true.
5425+
Return an iterator over the elements from ITER for which KEEP? returns true.
54265426

54275427

54285428

@@ -5507,7 +5507,7 @@ Return the zero-based index of the first element of ITER for which THIS? is `Tru
55075507
#### <a href="#interleave!-value"><code>(INTERLEAVE! LEFT RIGHT)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/iterator.lisp#L306-L325">src</a></sub></sup><a name="interleave!-value"></a>
55085508
<code>&forall; :A. ((<a href="#iterator-type">Iterator</a> :A) &rarr; (<a href="#iterator-type">Iterator</a> :A) &rarr; (<a href="#iterator-type">Iterator</a> :A))</code>
55095509

5510-
Return an interator of interleaved elements from LEFT and RIGHT which terminates as soon as both LEFT and RIGHT do.
5510+
Return an iterator of interleaved elements from LEFT and RIGHT which terminates as soon as both LEFT and RIGHT do.
55115511

55125512
If one iterator terminates before the other, elements from the longer iterator will be yielded without
55135513
interleaving. (interleave empty ITER) is equivalent to (id ITER).
@@ -5926,7 +5926,7 @@ Appends two lists together and returns a new list.
59265926
#### <a href="#car-value"><code>(CAR X)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/list.lisp#L110-L114">src</a></sub></sup><a name="car-value"></a>
59275927
<code>&forall; :A. ((<a href="#list-type">List</a> :A) &rarr; :A)</code>
59285928

5929-
Return the traditional car of a list. This function is partial
5929+
Return the traditional car of a list. This function is partial.
59305930

59315931

59325932

@@ -5944,7 +5944,7 @@ Return the traditional cdr of a list.
59445944
#### <a href="#combs-value"><code>(COMBS L)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/list.lisp#L664-L672">src</a></sub></sup><a name="combs-value"></a>
59455945
<code>&forall; :A. ((<a href="#list-type">List</a> :A) &rarr; (<a href="#list-type">List</a> (<a href="#list-type">List</a> :A)))</code>
59465946

5947-
Compute a list of all combinations of elements of `l`. This function is sometimes goes by the name "power set" or "subsets".
5947+
Compute a list of all combinations of elements of `l`. This function sometimes goes by the name "power set" or "subsets".
59485948

59495949
The ordering of elements of `l` is preserved in the ordering of elements in each list produced by this function.
59505950

@@ -6004,7 +6004,7 @@ Count the number of items in THINGS that satisfy the predicate F.
60046004
#### <a href="#difference-value"><code>(DIFFERENCE XS YS)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/list.lisp#L427-L429">src</a></sub></sup><a name="difference-value"></a>
60056005
<code>&forall; :A. <a href="#eq-class">Eq</a> :A &rArr; ((<a href="#list-type">List</a> :A) &rarr; (<a href="#list-type">List</a> :A) &rarr; (<a href="#list-type">List</a> :A))</code>
60066006

6007-
Returns a new list with the first occurence of each element in `ys` removed from `xs`.
6007+
Returns a new list with the first occurrence of each element in `ys` removed from `xs`.
60086008

60096009

60106010

@@ -6620,7 +6620,7 @@ Absolute value of `x`.
66206620
#### <a href="#ash-value"><code>(ASH X N)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/math/arith.lisp#L170-L172">src</a></sub></sup><a name="ash-value"></a>
66216621
<code>(<a href="#integer-type">Integer</a> &rarr; <a href="#integer-type">Integer</a> &rarr; <a href="#integer-type">Integer</a>)</code>
66226622

6623-
Compute the "arithmetic shift" of `x` by `n`.
6623+
Compute the "arithmetic shift" of `x` by `n`.
66246624

66256625

66266626

@@ -8734,7 +8734,7 @@ If `iter` contains duplicate keys, later values will overwrite earlier values.
87348734
#### <a href="#difference-value"><code>(DIFFERENCE A B)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/ordmap.lisp#L275-L279">src</a></sub></sup><a name="difference-value"></a>
87358735
<code>&forall; :A :B. <a href="#ord-class">Ord</a> :A &rArr; ((<a href="#ordmap-type">OrdMap</a> :A :B) &rarr; (<a href="#ordmap-type">OrdMap</a> :A :B) &rarr; (<a href="#ordmap-type">OrdMap</a> :A :B))</code>
87368736

8737-
Raturns an OrdMap that contains mappings in `a` but not in `b`.
8737+
Returns an OrdMap that contains mappings in `a` but not in `b`.
87388738

87398739

87408740

@@ -8899,7 +8899,7 @@ Iterate over the values in MP, sorted by their corresponding keys in least-to-gr
88998899
#### <a href="#xor-value"><code>(XOR A B)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/ordmap.lisp#L282-L287">src</a></sub></sup><a name="xor-value"></a>
89008900
<code>&forall; :A :B. <a href="#ord-class">Ord</a> :A &rArr; ((<a href="#ordmap-type">OrdMap</a> :A :B) &rarr; (<a href="#ordmap-type">OrdMap</a> :A :B) &rarr; (<a href="#ordmap-type">OrdMap</a> :A :B))</code>
89018901

8902-
Raturns an OrdMap that contains mappings either in `a` or in `b`,
8902+
Returns an OrdMap that contains mappings either in `a` or in `b`,
89038903
but not in both.
89048904

89058905

@@ -9224,7 +9224,7 @@ Return the `index`th element of `q` without checking if the element exists.
92249224
#### <a href="#items!-value"><code>(ITEMS! Q)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/queue.lisp#L192-L197">src</a></sub></sup><a name="items!-value"></a>
92259225
<code>&forall; :A. ((<a href="#queue-type">Queue</a> :A) &rarr; (<a href="#iterator-type">Iterator</a> :A))</code>
92269226

9227-
Returns an interator over the items of `q`, removing items as they are returned.
9227+
Returns an iterator over the items of `q`, removing items as they are returned.
92289228

92299229

92309230

@@ -9617,7 +9617,7 @@ Divide `s` into a series of slices of length `size`. Will skip trailing elements
96179617
#### <a href="#iter-sliding-value"><code>(ITER-SLIDING SIZE S)</code></a> <sup><sub>[FUNCTION] · <a href="https://github.com/coalton-lang/coalton/tree/main/library/slice.lisp#L102-L116">src</a></sub></sup><a name="iter-sliding-value"></a>
96189618
<code>&forall; :A :B. <a href="#sliceable-class">Sliceable</a> (:A :B) &rArr; (<a href="#ufix-type">UFix</a> &rarr; (:A :B) &rarr; (<a href="#iterator-type">Iterator</a> (<a href="#slice-type">Slice</a> :B)))</code>
96199619

9620-
Returns an iterator that yeilds a series of overlapping slices of length `size`.
9620+
Returns an iterator that yields a series of overlapping slices of length `size`.
96219621

96229622

96239623

0 commit comments

Comments
 (0)