Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort: add Reverse #4511

Closed
rsc opened this issue Dec 9, 2012 · 6 comments
Closed

sort: add Reverse #4511

rsc opened this issue Dec 9, 2012 · 6 comments
Milestone

Comments

@rsc
Copy link
Contributor

@rsc rsc commented Dec 9, 2012

To add to package sort, with docs and tests:

type reverse struct {
    Interface
}

func (r *reverse) Less(i, j int) bool {
    return r.Interface.Less(j, i)
}

func Reverse(data Interface) Interface {
    return &reverse{data}
}
@rsc
Copy link
Contributor Author

@rsc rsc commented Dec 10, 2012

Comment 1:

Labels changed: added size-m.

@rsc
Copy link
Contributor Author

@rsc rsc commented Dec 10, 2012

Comment 2:

Labels changed: added suggested.

@minux
Copy link
Member

@minux minux commented Dec 13, 2012

Comment 3:

https://golang.org/cl/6909059/

Owner changed to ---.

Status changed to Started.

@dsymonds
Copy link
Member

@dsymonds dsymonds commented Dec 15, 2012

Comment 4:

Labels changed: removed suggested.

@cespare
Copy link
Contributor

@cespare cespare commented Jan 6, 2013

@rsc
Copy link
Contributor Author

@rsc rsc commented Feb 1, 2013

Comment 6:

This issue was closed by revision d4cfe28.

Status changed to Fixed.

@rsc rsc added fixed labels Feb 1, 2013
@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.