feat: integrate the AI assistant.
This commit is contained in:
parent
522d253410
commit
dcb251d2ad
7 changed files with 366 additions and 7 deletions
|
|
@ -16,3 +16,12 @@ func ToLookupMap[T comparable](s []T) map[T]struct{} {
|
|||
}
|
||||
return m
|
||||
}
|
||||
|
||||
func Reverse[T any](s []T) []T {
|
||||
length := len(s)
|
||||
reversed := make([]T, length)
|
||||
for i, item := range s {
|
||||
reversed[length-i-1] = item
|
||||
}
|
||||
return reversed
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue