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
As the current version does allocate memory which is a waste in the single case. For completeness you could also add the slice versions, but it does border on trivial.
Would it be worth adding a single item version of seq sample_iter()? My use cases typically only need one item. Code like this:
As the current version does allocate memory which is a waste in the single case. For completeness you could also add the slice versions, but it does border on trivial.
I can do a PR if needed.
The text was updated successfully, but these errors were encountered: