Sign in
go
/
go
/
72237f94a4aae8f9269717f45fdc334b5f525b7c
/
.
/
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)
})
}