Sign in
go
/
go
/
refs/tags/go1.21rc3
/
.
/
test
/
typeparam
/
issue50486.dir
/
main.go
blob: c2c8eea73d7bcc9c2dad20945043caafa25e2d3c [
file
] [
log
] [
blame
]
package main
import fp "./goerror_fp"
func Fold[A, B any](zero B, a A, f func(B, A) B) B {
return f(zero, a)
}
func main() {
var v any = "hello"
Fold(fp.Seq[any]{}, v, func(seq fp.Seq[any], v any) fp.Seq[any] {
return seq.Append(v)
})
}