This shows you the differences between two versions of the page.
|Last revision Both sides next revision|
yield [2018/04/22 12:10]
yield [2018/04/22 12:18]
|Line 58:||Line 58:|
|end creating list</code>||end creating list</code>|
|+||To explain a bit more: the ''yield'' returns the member of the list, and the calling code can work immediatly with instead of waiting for the called function to be complete.|
|+||This is particularly useful if you have longer processes and need to refresh the user interface.|