CompositeComputations flatten
add inplace