You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When called with a slice, JustItem returns a Single that sends multiple values. However the documentation (and the name) suggests that a Single should send one value. There appears to be no way to send a slice as a single value, which is very counterintuitive!
Describe the bug
When called with a slice,
JustItem
returns aSingle
that sends multiple values. However the documentation (and the name) suggests that aSingle
should send one value. There appears to be no way to send a slice as a single value, which is very counterintuitive!To Reproduce
The following code demsonstrates the issue: (also on Go playground)
Produces output:
Expected behavior
Output:
Additional context
The problem appears to be caused by the
send
function (item.go:75) which switches on the type of each item.The text was updated successfully, but these errors were encountered: