Hi,

I've been reading the iter pkg docs and I'm trying to understand a 
distinction drawn there.

It says that the iterator method on a collection type is conventionally 
named All (and returns a Seq). However, the maps and slices packages handle 
this a little differently. They have All funcs that return a Seq2, and 
separate Values funcs that return a Seq.

How come there's this difference? Looking at making an update to some 
collection types, wondering if it's more appropriate to have a Values 
method if it's going to return a Seq.

Thanks,
Adam

-- 
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/79664512-7e0a-4336-8f17-ced87deaea3cn%40googlegroups.com.

Reply via email to