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
When you want more than one result, but not all of them, things can be a tad awkward. First off, there's no native function to do that! An obvious one might be
splitUpTo::Int->SeqTma->m ([a], ma)
to get up to n results in a list. Another might get fancier with length-indexed vectors
I should add, it's not a big deal with our monad to write this yourself, but in LogicT the Identity version can avoid msplit which gives them a big performance boost.
Yes, we should have that, but I want splitAt, not just take. Ideally, I think, one version that produces its result in m and one that does so in SeqT m, much as we have both toView and msplit.
When you want more than one result, but not all of them, things can be a tad awkward. First off, there's no native function to do that! An obvious one might be
to get up to
n
results in a list. Another might get fancier with length-indexed vectorsStuff like that.
The text was updated successfully, but these errors were encountered: