Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get playground to display all loop results

Tags:

I'm using an xcode 7 playground, and I want to know how to make the playground display all the results printed out by a loop.

for example:

enter image description here

This will tell me the loop ran 4 times, but it will only display the last value of the iteration. Is there a way I can make it show all values?

like image 688
Ben Avatar asked Oct 23 '15 01:10

Ben


1 Answers

Right click on the inline quick look (the gray rounded rectangle with "4" in it). There's an option to show all the results in a list:

Value History

You can also show everything that's been printed to the console for the entire playground execution by clicking the show debug area button all the way in the bottom left corner:

enter image description here

like image 167
Jack Lawrence Avatar answered Sep 21 '22 18:09

Jack Lawrence