diff options
| author | Paul Buetow <paul@buetow.org> | 2020-07-17 09:25:48 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2020-07-17 09:25:48 +0100 |
| commit | 224cff0a5113b1ea1a09fd48caf164e5690ec8a7 (patch) | |
| tree | 06faddeef4fdc4792b47576b332f28cea0bacbbb /sort/selection.go | |
| parent | 8f291992bdd98bd7ca6eefe084790e56d00833a8 (diff) | |
refactor
Diffstat (limited to 'sort/selection.go')
| -rw-r--r-- | sort/selection.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sort/selection.go b/sort/selection.go index d084fc0..3a5774f 100644 --- a/sort/selection.go +++ b/sort/selection.go @@ -4,7 +4,7 @@ import ( "algorithms/ds" ) -func Selection(a []ds.Comparer) []ds.Comparer { +func Selection(a ds.ArrayList) ds.ArrayList { length := len(a) for i := 0; i < length; i++ { min := i |
