Closed jariji closed 8 months ago
Yes, this should get a docstring. The purpose of recursive
is to enable do
-notation for wrapping, like so:
julia> using Supposition
julia> gen = Data.recursive(Data.Integers{UInt8}()) do u
Data.Vectors(u; min_size=1, max_size=2)
end;
julia> example(gen)
1-element Vector{Union{UInt8, Vector{UInt8}, Vector{Union{UInt8, Vector{UInt8}}}}}:
Union{UInt8, Vector{UInt8}}[UInt8[0xdc]]
It should be either documented or not mentioned.