Skip to content

Commit

Permalink
Merge branch 'hotfix/0.0.24' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-hanna committed Apr 13, 2017
2 parents d1410cd + c25e9f1 commit f2be820
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arrayOperations.go
Expand Up @@ -41,6 +41,7 @@ func Distinct(arr interface{}) (reflect.Value, bool) {
// Intersect returns a slice of values that are present in all of the input slices
//
// [1, 1, 3, 4, 5, 6] & [2, 3, 6] >> [3, 6]
//
// [1, 1, 3, 4, 5, 6] >> [1, 3, 4, 5, 6]
func Intersect(arrs ...interface{}) (reflect.Value, bool) {
// create a map to count all the instances of the slice elems
Expand Down Expand Up @@ -95,6 +96,7 @@ func Intersect(arrs ...interface{}) (reflect.Value, bool) {
// Union returns a slice that contains the unique values of all the input slices
//
// [1, 2, 2, 4, 6] & [2, 4, 5] >> [1, 2, 4, 5, 6]
//
// [1, 1, 3, 4, 5, 6] >> [1, 3, 4, 5, 6]
func Union(arrs ...interface{}) (reflect.Value, bool) {
// create a temporary map to hold the contents of the arrays
Expand Down Expand Up @@ -137,6 +139,7 @@ func Union(arrs ...interface{}) (reflect.Value, bool) {
// Difference returns a slice of values that are only present in one of the input slices
//
// [1, 2, 2, 4, 6] & [2, 4, 5] >> [5, 6]
//
// [1, 1, 3, 4, 5, 6] >> [1, 3, 4, 5, 6]
func Difference(arrs ...interface{}) (reflect.Value, bool) {
// create a temporary map to hold the contents of the arrays
Expand Down

0 comments on commit f2be820

Please sign in to comment.