Closed Pangoraw closed 11 months ago
ooh what does this fix again?
the precomputed plutosliderswrrver has a second issue that this is a lazy object (on purpose) but pss does not work with that yet. i started working on it but still need to finish it
This fixes the generator which currently fails to generate possible values:
julia> PlutoUI.BuiltinsNotebook.Bonds.possible_values(MultiSelect([1, 2, 3])) |> collect
ERROR: MethodError: no method matching getindex(::Base.Generator{UnitRange{Int64}, PlutoUI.BuiltinsNotebook.var"#48#52"}, ::Vector{Bool})
Stacktrace:
[1] (::PlutoUI.BuiltinsNotebook.var"#33#34"{Base.Generator{UnitRange{Int64}, PlutoUI.BuiltinsNotebook.var"#48#52"}})(I::Tuple{Bool, Bool, Bool})
@ PlutoUI.BuiltinsNotebook ./none:0
[2] iterate
@ ./generator.jl:47 [inlined]
[3] collect
@ ./array.jl:782 [inlined]
[4] |>(x::Base.Generator{Vector{Tuple{Bool, Bool, Bool}}, PlutoUI.BuiltinsNotebook.var"#33#34"{Base.Generator{UnitRange{Int64}, PlutoUI.BuiltinsNotebook.var"#48#52"}}}, f::typeof(collect))
@ Base ./operators.jl:907
[5] top-level scope
@ REPL[8]:1
The output of possible_values(::MultiSelect)
is still a generator but it can now be collected as shown in tests.
subarrays
should take an indexableVector
as input, not any generator.