2 votes

How to efficiently Append a result of an operation on each element of a list to itself?

list = {{a, b, c}, {e, f, g}}; Splice came with V 12.1 ...
eldo's user avatar
  • 48.8k
2 votes

Which object-oriented paradigm approach to use in Mathematica?

I want to talk about why I specifically made my short realization and what format I chose. Lately I have been developing small paclets that can be used for general purpose. For example a client for ...
Kirill Belov's user avatar
1 vote

How to efficiently Append a result of an operation on each element of a list to itself?

Using Cases: ...
E. Chan-López's user avatar
1 vote

How to efficiently Append a result of an operation on each element of a list to itself?

lst={{x1, y1, z1}, {x2, y2, z2},{x3,y3,z3}} MapThread[Append,{#,#[[All,2]] #[[All,3]]}]&@lst (*{{x1,y1,z1,y1 z1},{x2,y2,z2,y2 z2},{x3,y3,z3,y3 z3}} *) ...
user1066's user avatar
  • 15.6k
1 vote

How to efficiently Append a result of an operation on each element of a list to itself?

This is basically the same as Rojo's idea, but it appears to be 10% faster on my system (M1 Max): ...
Henrik Schumacher's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible