* Axel Wagner:

> One way to fix this is to change the signatures to
>
> func Contains[I Iterator[T], T comparable](c I, value T) bool
> func Contains2[I Iterator[T], T comparable](value T, c I) bool

I had not realized that, thanks. The opposite order is perhaps more
useful, [T comparable, I Iterator[T]], to simplify specifying the type
T when necessary.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/87v91416am.fsf%40mid.deneb.enyo.de.

Reply via email to