Skip to main content

New answers tagged

4 votes
Accepted

How to use functional iteration with changing function?

Here is a way to use Fold, that uses the iterator trick I learned here years ago: ...
march's user avatar
  • 23.8k
4 votes

How to use functional iteration with changing function?

Maybe equation = Fold[#2[[1]][#1, #2[[2]]] &, First@nums, Transpose[{operations, Rest@nums}]] The ...
lericr's user avatar
  • 29.1k
2 votes

Removing duplicates between sublists

A variant of 1066's answer ...
eldo's user avatar
  • 74.7k
2 votes

How to implement this zip function? zip[g,{f[{a,b}],f[{c,d}]}] to f[{g[{a,c}],g[{b,d}]}]

I can't recall one single built-in function for the task, but here's a simpler solution for your specific task: ...
xzczd's user avatar
  • 66.8k
2 votes

How to implement this zip function? zip[g,{f[{a,b}],f[{c,d}]}] to f[{g[{a,c}],g[{b,d}]}]

I came up with this solution: ...
Tapiocaweasel's user avatar

Top 50 recent answers are included