Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f6ee55a8
Commit
f6ee55a8
authored
Jan 02, 2013
by
ian@well-typed.com
Browse files
Clarify the wording of the 'insert' haddock; fixes
#7421
Wording suggested by Bart Massey.
parent
5e3aec69
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/base/Data/List.hs
View file @
f6ee55a8
...
...
@@ -509,7 +509,7 @@ mapAccumR f s (x:xs) = (s'', y:ys)
(
s'
,
ys
)
=
mapAccumR
f
s
xs
-- | The 'insert' function takes an element and a list and inserts the
-- element into the list at the
la
st position where it is
still
less
-- element into the list at the
fir
st position where it is less
-- than or equal to the next element. In particular, if the list
-- is sorted before the call, the result will also be sorted.
-- It is a special case of 'insertBy', which allows the programmer to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment