Skip to content

feat(Flatten): allow func(T, X...) V|(V, bool) function signatures#284

Merged
maxatome merged 1 commit intomasterfrom
flatten-variadic
Oct 5, 2025
Merged

feat(Flatten): allow func(T, X...) V|(V, bool) function signatures#284
maxatome merged 1 commit intomasterfrom
flatten-variadic

Conversation

@maxatome
Copy link
Copy Markdown
Owner

Allowing to use td.Re as function for example:

ok = td.Cmp(t,
  strings.Split(got, "\n"),
  td.List(td.Flatten(strings.Split(expectedRe, "\n"), td.Re)))

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 13, 2025

Coverage Status

coverage: 99.921%. remained the same
when pulling 58cad08 on flatten-variadic
into 9e24789 on master.

@maxatome
Copy link
Copy Markdown
Owner Author

@deathiop

Allowing to use td.Re as function for example:

    ok = td.Cmp(t,
      strings.Split(got, "\n"),
      td.List(td.Flatten(strings.Split(expectedRe, "\n"), td.Re)))

Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
@maxatome maxatome merged commit 351881d into master Oct 5, 2025
13 checks passed
@maxatome maxatome deleted the flatten-variadic branch October 5, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants