Changeset 15189 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/VectorRemoveExpressions.cs
- Timestamp:
- 07/10/17 21:36:03 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/VectorRemoveExpressions.cs
r15032 r15189 25 25 protected void Eval(IPushStack<IReadOnlyList<T>> vectorStack, IPushStack<T> literalStack) { 26 26 var literal = literalStack.Pop(); 27 vectorStack.Top = vectorStack.Top.Where(x => !x.Equals(literal)).To Array();27 vectorStack.Top = vectorStack.Top.Where(x => !x.Equals(literal)).ToList(); 28 28 } 29 29 } … … 92 92 [PushExpression( 93 93 StackTypes.StringVector, 94 "STRING[].REMOVE", 94 95 "Removes all occurrences of the top STRING in the top STRING[].", 95 "STRING[].REMOVE",96 96 StackTypes.String)] 97 97 public class StringVectorRemoveExpression : VectorRemoveExpression<string> {
Note: See TracChangeset
for help on using the changeset viewer.