   Partial Completion
  How do I make a function that has a large set of operations to do and performs a small number of operations on that set then returns? I''ve never seen it done, and when I read this it peaked my interest.  This article mentions using partial completing functions. 
I''m not sure I understand you, so I''ll attempt to reword it to see show you what I''m answering.   How do I make a function that is capable of doing many different things, do just some or a few of them then return?   There are many ways, the real question is how your going to decide how many ''things''/operations/algorithms/actions it will be doing, and which ones to do.  Here is a simple one.for(unsigned a = 0; a < NumberOfActions; a++){   switch(rand())   {   case 0: //one action break;   ......   };}Or here is one like mentioned in that article (from what I quickly read when searched for the work ''partial'', just that paragraph).//prep something....if(Error)   return false;//prep something else, initialize some objects whatever...if(Error)    return false;//Last stage...if(Error)   return false;else   return true;Pat - Ex nihilo nihilus 