diff --git a/inflater.go b/inflater.go index 8d6303c..cf3d187 100644 --- a/inflater.go +++ b/inflater.go @@ -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: @@ -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] {