Rename Seq2 to Seq

This commit is contained in:
b committed 2026-07-24 16:25:29 -06:00
1 parent e60f6ae015
commit f7ddbb8fc4
3 files changed
+2 -4

No files matched your search

-2
View File
@@ -1,9 +1,7 @@
Think about not requiring so much Pos() when making messages
Think about changing "consume" to "commit"
Rename Seq2 to Seq
Document Seq
Should MakeState be private now that there's Run?
What's Megaparsec got that we ain't got?
Add and benchmark naïve Seq
chainl
whitespace handling
+1 -1
View File
@@ -1,7 +1,7 @@
{{/* SPDX-License-Identifier: Unlicense */ -}}
{{define "func"}}{{if gt . 1 -}}
func Seq{{.}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
func Seq{{if gt . 2}}{{.}}{{end}}[In, Out{{range .Count}}, T{{.}}{{end}} any](
{{- range .Count}}
p{{.}} Parser[In, T{{.}}],{{end}}
f func({{range .Count}}{{if ne . 1}}, {{end}}T{{.}}{{end}}) Out,
+1 -1
View File
@@ -4,7 +4,7 @@
package gigaparsec
func Seq2[In, Out, T, T2 any](
func Seq[In, Out, T, T2 any](
p Parser[In, T],
p2 Parser[In, T2],
f func(T, T2) Out,