This should be a fairly simple question, but I can't figure out how to do it. I have a list of points of the following form:
{ {{x1, y1}, z1}, {{x2, y2}, z2} ... }
This form is useful for creating an interpolation function. However, if I want to plot a list contour plot of the same data, I need an array of the form:
{ {x1, y1, z1}, {x2, y2, z2} ... }
Is there an easy way to convert between the two, without generating the data again from scratch in the new format? I tried a few things with Flatten[] but that doesn't seem to work for me.

Flatten /@ listorAppend @@@ listshould work. – J. M.'s missing motivation Jun 21 '16 at 17:15Flatten[list,1]basically says "get rid of all the curly braces at level 1". So, if you have a list like{{{1, 2}, 3}, {{4, 2}, 1}}, the elements at level 1 are{{1, 2}, 3}and{{4, 2}, 1}}; remove the outermost braces on each of those, and splice them back into the list, you get{{1, 2}, 3, {4, 2}, 1}. – J. M.'s missing motivation Jun 21 '16 at 17:22Append. :) – yode Jun 21 '16 at 17:32