Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,245
Issues
4,245
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
397
Merge Requests
397
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
504c2aeb
Commit
504c2aeb
authored
Jul 16, 2015
by
thomie
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: `sortOn = sortBy (comparing f)` [skip ci]
parent
74a00bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libraries/base/Data/OldList.hs
libraries/base/Data/OldList.hs
+1
-1
No files found.
libraries/base/Data/OldList.hs
View file @
504c2aeb
...
...
@@ -973,7 +973,7 @@ rqpart cmp x (y:ys) rle rgt r =
#
endif
/*
USE_REPORT_PRELUDE
*/
-- | Sort a list by comparing the results of a key function applied to each
-- element. @sortOn f@ is equivalent to @sortBy
. comparing f
@, but has the
-- element. @sortOn f@ is equivalent to @sortBy
(comparing f)
@, but has the
-- performance advantage of only evaluating @f@ once for each element in the
-- input list. This is called the decorate-sort-undecorate paradigm, or
-- Schwartzian transform.
...
...
thomie
@trac-thomie
mentioned in issue
#10645 (closed)
·
Jul 16, 2015
mentioned in issue
#10645 (closed)
mentioned in issue #10645
Toggle commit list
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