Changeset 14914 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Stack/PushStack.cs
- Timestamp:
- 05/03/17 12:48:46 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Stack/PushStack.cs
r14909 r14914 6 6 7 7 /// <summary> 8 /// While Push's stacks are generally treated as genuine stacks---that is, inclassions take their arguments from the8 /// While Push's Stacks are generally treated as genuine Stacks---that is, inclassions take their arguments from the 9 9 /// tops of 10 /// the stacks and push their results onto the tops of the stacks---a few inclassions (like YANK and SHOVE) do allow10 /// the Stacks and push their results onto the tops of the Stacks---a few inclassions (like YANK and SHOVE) do allow 11 11 /// direct access 12 /// to "deep" stack elements by means of integer indices. To this extent the stacks can be used as general, random12 /// to "deep" stack elements by means of integer indices. To this extent the Stacks can be used as general, random 13 13 /// access memory 14 14 /// classures. This is one of the features that ensures the Turing-completeness of Push (another being the arbitrary … … 279 279 return string.Join(Delimiter, data.Reverse()); 280 280 } 281 282 IEnumerable<string> IPushStack.AsStrings() { 283 return data.Select(x => x.ToString()); 284 } 285 286 IEnumerable<object> IPushStack.AsObjects() { 287 return data.OfType<object>(); 288 } 281 289 } 282 290 }
Note: See TracChangeset
for help on using the changeset viewer.