Пример #1
0
func RemoveByV_L(list L, v V) {
	keys := generic.MakeSlice(list.TypeK_L()).Interface()
	vs := generic.ValueOf(v)
	for i := 0; i < vs.Len(); i++ {
		val := vs.Index(i).Interface()
		key := KeyOf_L(list, val)
		if key != nil {
			keys = generic.Append(keys, key).Interface()
		}
	}
	list.Remove_L(keys)
}
Пример #2
0
func Iterator_L(list L) V {
	v := generic.MakeSlice(list.Values_L()).Interface()
	return generic.Append(v, list.Values_L()).Interface()
}
Пример #3
0
func KeySet_L(list L) K {
	k := generic.MakeSlice(list.Keys_L()).Interface()
	return generic.Append(k, list.Keys_L()).Interface()
}