func Of(items ...interface{}) collections.Sequence { ret := collections.NewArrayList() for _, i := range items { ret.Add(i) } return ret }
func Values(m interface{}) collections.Sequence { vMap := reflect.ValueOf(m) ret := collections.NewArrayList() keys := vMap.MapKeys() // TODO: ret.Reserve(len(keys)) for _, vKey := range keys { vValue := vMap.MapIndex(vKey) ret.Add(vValue.Interface) } return ret }