Peter Alexander <> changed:

           What    |Removed                     |Added
                 CC|                            |
                   |                            |m

--- Comment #1 from Peter Alexander <> 2010-10-19 
00:20:20 PDT ---
This actually seems to be a common pattern.

By "this", I mean:

auto foo(T value)
  T copy = value.dup;
  return copy;

"modify" here could be sort, reverse, schwartzSort, partition etc. which would
give you sorted, reversed, schwartzSorted and partitioned. It's also the same
as defining op+ in terms of op+=.

I have no idea what you would call foo though :-(

arr2 = transformed!(sort)(arr1);
arr2 = mutated!(sort)(arr1);
arr2 = modified!(sort)(arr1);
arr2 = copyModify!(sort)(arr1);


Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to