diff --git a/Project.toml b/Project.toml index 921dc054d..e17343312 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "DynamicPPL" uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8" -version = "0.12.1" +version = "0.12.2" [deps] AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001" diff --git a/src/varinfo.jl b/src/varinfo.jl index fe3262dd5..a226506f4 100644 --- a/src/varinfo.jl +++ b/src/varinfo.jl @@ -499,8 +499,13 @@ end length(exprs) == 0 && return :(NamedTuple()) return :($(exprs...),) end + @inline function findranges(f_ranges, f_idcs) - return mapreduce(i -> f_ranges[i], vcat, f_idcs; init=Int[]) + results = Int[] + for i in f_idcs + append!(results, f_ranges[i]) + end + return results end """