Пример #1
0
func (ioc IOController) Send(i int, x slices.ISlice) {
	go func() {
		c := make(slices.ISlice, 0, x.Len())
		copy(c, x)
		ioc[i] <- c
	}()
}
Пример #2
0
func (s iset) String() (t string) {
	elements := slices.ISlice{}
	s.Each(func(v int) {
		elements = append(elements, v)
	})
	slices.Sort(elements)
	return elements.String()
}