I am trying to use this package to sample from Combinatorics.jl objects (which typically produce super large iterator you don't want to collect, thus your package is perfect!).
The following works, but the result is a Vector{Any} instead of Vector{Vector{Int64}}
X = 1:6
k = 2
iter = multiset_combinations(X, k)
itsample(iter, 2; replace = false, ordered = false)
if we do
itsample(iter, 20; replace = false, ordered = false) # ask for more element than the 15 in the iter
it errors ERROR: TypeError: in typeassert, expected Vector{Any}, got a value of type Vector{Vector{Int64}}
I believe this is due to usage of calculate_eltype(iter) i.e. Base.@default_eltype(iter).