diff options
Diffstat (limited to 'android/paths.go')
-rw-r--r-- | android/paths.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/paths.go b/android/paths.go index 2a0a70a9..ddbeed3c 100644 --- a/android/paths.go +++ b/android/paths.go @@ -466,6 +466,10 @@ func (p Paths) Strings() []string { return ret } +func CopyOfPaths(paths Paths) Paths { + return append(Paths(nil), paths...) +} + // FirstUniquePaths returns all unique elements of a Paths, keeping the first copy of each. It // modifies the Paths slice contents in place, and returns a subslice of the original slice. func FirstUniquePaths(list Paths) Paths { |