Document Bind and friends
This commit is contained in:
1 parent
3e8b0e663c
commit
6256b73325
2 files changed
+7
No files matched your search
@@ -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