Add list all feeds

This commit is contained in:
2024-05-04 18:41:47 +02:00
parent 4f1a4c41e5
commit 31077f9fb5
7 changed files with 74 additions and 23 deletions
+9
View File
@@ -0,0 +1,9 @@
package vex
func Map[T, U any](ts []T, f func(T, int) U) []U {
us := make([]U, len(ts))
for i := range ts {
us[i] = f(ts[i], i)
}
return us
}