Re: [go-nuts] tuples! tuples! tuples!

2024-04-30 Thread Andrew Harris
*func main() {for x := range FSeq(strconv.Atoi) { fmt.Println(reflect.TypeOf(x))}}func FSeq[V (... any)](f func(string) V) iter.Seq[V] {return func(yield func(v V) bool)) { yield(f("1234"))}}* *>>> If it wouldn't b

Re: [go-nuts] tuples! tuples! tuples!

2024-04-30 Thread roger peppe
On Mon, 29 Apr 2024 at 22:06, Andrew Harris wrote: > 2. On implementation, before considering variadic tuple constraints: There > is tuple machinery already in the type system > , used > for assignments and signatures, but tuples are

Re: [go-nuts] Re: command to pre-compile vendor libs

2024-04-30 Thread Harmen
> > It all works fine, just wondering if there's a nicer way to get all > > "compilable" packages stored in /vendor. > > go list ./vendor/... I knew there had to be a simpler way, thanks! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsub

[go-nuts] Re: command to pre-compile vendor libs

2024-04-30 Thread Anthony Martin
Harmen once said: > It all works fine, just wondering if there's a nicer way to get all > "compilable" packages stored in /vendor. go list ./vendor/... Cheers, Anthony -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this