Skip to content

Commit 90da499

Browse files
askebladtreeowl
authored andcommitted
another typo
1 parent 66d8fab commit 90da499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

containers/src/Data/Sequence/Internal/sorting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ [email protected], 1/11/18
137137
The `sortOn` and `unstableSortOn` functions perform the Schwartzian transform, however instead of the following implementation:
138138

139139
```haskell
140-
sortOn f = fmap snd . sortBy (conparing fst) . fmap (\x -> (f x, x))
140+
sortOn f = fmap snd . sortBy (comparing fst) . fmap (\x -> (f x, x))
141141
```
142142

143143
The `fmap`s are fused manually with the creation of the queue, avoiding the two extra traversals. It still suffers a slowdown of roughly 20%:

0 commit comments

Comments
 (0)