Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
koron committed Jul 29, 2024
1 parent bd96807 commit 41e61da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inflater.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func Join2[V any](first, second Inflater[V]) Inflater[V] {
})
}

// Distibute creates an Inflater which distibute a seed to multiple Inflaters.
// Join creates an Inflater which distibute a seed to multiple Inflaters.
func Join[V any](inflaters ...Inflater[V]) Inflater[V] {
switch len(inflaters) {
case 0:
Expand All @@ -96,6 +96,10 @@ func Join[V any](inflaters ...Inflater[V]) Inflater[V] {
}
}

func JoinSeed[V any](inflaters ...Inflater[V]) Inflater[V] {
return Join2[V](Keep[V](), Join(inflaters...))
}

// Reinflate2 creates an Inflater that inflates the result of the first
// Inflater with the second Inflater.
func Reinflate2[V any](first, second Inflater[V]) Inflater[V] {
Expand Down

0 comments on commit 41e61da

Please sign in to comment.