Closed fdietze closed 2 years ago
Yeah it's somewhat intentional... to force people to use monadic operations (map/filter/flatMap) and stay "in" the monad as long as possible, rather than writing their own loops where they draw samples and aggregate. In that case I think singleSample
would be fine.
@jliszka It's ready to merge.
This allows to avoid List creation using
sample
if only one sample is needed. Does it have any downsides to useget
directly?Or would it be better to provide an extra method like
singleSample
or similar?