I prefer:
http://play.golang.org/p/hwm1AcBBRe
Chris
I do like the playground!
--
Chris "allusive" Dollin
Oh bother, yes.
http://play.golang.org/p/Xy-ZpBCbBp
Chris
--
Chris "allusive" Dollin
Nice.
you can slightly simplify your function, BTW
where you've got: func(index, seq interface{}) bool
you could use: func(index int, seq interface{}) bool
here's another solution that i find amusing,
and invites a whole host of potentially interesting
variations, i think: