Skip to content

Commit

Permalink
Contact removed'
Browse files Browse the repository at this point in the history
  • Loading branch information
Parvej Ahammad committed Oct 16, 2022
1 parent bf4c97f commit d90ae78
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,4 @@ FindIndex(users, "User1")
FindIndex(users, "User5")
//-1
```
### Concat

```
users1 := []User{{Id: 10, Name: "John"}, {Id: 11, Name: "Doe"}, {Id: 12, Name: "Sabrina"}}
users2 := []User{{Id: 10, Name: "John"}, {Id: 11, Name: "Doe"}, {Id: 12, Name: "Sabrina"}}
Concat(users1, users2)
//{{Id: 10, Name: "John"}, {Id: 11, Name: "Doe"}, {Id: 12, Name: "Sabrina"}, {Id: 10, Name: "John"}, {Id: 11, Name: "Doe"}, {Id: 12, Name: "Sabrina"}}
```
16 changes: 0 additions & 16 deletions concat_test.go

This file was deleted.

4 changes: 0 additions & 4 deletions js_array_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,3 @@ func Reverse[T any](input []T) []T {

return output
}

func Concat[T any](slice1 []T, slice2 []T) []T {
return append(slice1, slice2...)
}

0 comments on commit d90ae78

Please sign in to comment.