I have some blocks which contain other blocks, such as
outerBlock: [
["a" $6.99 [innerBlock1]]
["b" $5.15 [none]]
["c" $8.49 [innerBlock2]]
["d" $6.99 [innerBlock2]]
["e" $6.99 [innerBlock1]]
["f" $5.15 [none]]
]
innerBlock2: [
["aa" $0.00]
["bb" $1.00]
["cc" $2.00]
]
innerBlock1: [
["aaa" $0.50]
["bbb" $1.00]
["ccc" $2.00]
]
How do I make it so that the inner blcoks of outerBlock are replaced with their contents, like this
outerBlock: [
["a" $6.99 [["aaa" $0.50]["bbb" $1.00]["ccc" $2.00]]]
["b" $5.15 [none]]
["c" $8.49 [["aa" $0.00]["bb" $1.00]["cc" $2.00]]]
["d" $6.99 [["aa" $0.00]["bb" $1.00]["cc" $2.00]]]
["e" $6.99 [["aaa" $0.50]["bbb" $1.00]["ccc" $2.00]]]
["f" $5.15 [none]]
]
When I probe outerBlock, I just get
[
["a" $6.99 [innerBlock1]]
["b" $5.15 [none]]
["c" $8.49 [innerBlock2]]
["d" $6.99 [innerBlock2]]
["e" $6.99 [innerBlock1]]
["f" $5.15 [none]]
]
Thanks for any help