Document Bind and friends
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
{{end}}{{end}}{{end -}}
|
||||
|
||||
{{define "func" -}}
|
||||
{{if eq . 1}}// Bind combines p with a parser created by f that depends on p's result value.
|
||||
{{- else}}// Bind{{.}} is equivalent to {{.}} nested calls to Bind.{{end}}
|
||||
func Bind{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
|
||||
p Parser[In, T],
|
||||
{{template "fparams" .}}) Parser[In, Out] {
|
||||
|
Reference in New Issue
Block a user