Tag: functional-style

142 General strategies to write big code in Mathematica? 2016-03-13T07:09:00.940

111 Functional style using lazy lists? 2012-01-28T02:33:27.567

51 Scan vs. Map vs. Apply 2014-04-16T15:55:12.333

43 Function in Table 2012-07-01T17:10:38.567

40 Can this be written well, without loops? 2012-02-22T19:42:13.327

39 Map a function across a list conditionally 2012-08-23T22:47:03.593

35 FoldWhile and FoldWhileList 2013-02-05T18:40:33.820

34 Prefix operator with low precedence 2012-06-02T10:08:21.880

34 Going full functional (Haskell style) 2013-04-23T02:28:48.667

34 Is there a comprehensive list of functions with operator forms? 2014-09-18T19:44:42.247

33 Does every Symbol in Mathematica induce a monad? 2012-03-25T13:53:55.657

33 Analogies to Help New Users 2018-09-08T14:34:42.760

30 How do I convert an argument list to a sequence of arguments? 2012-09-19T20:22:30.267

30 What is the difference between Composition (@*) and sequential applications (@)? 2015-04-03T15:10:44.720

29 Why is Unevaluated[#]& different from Unevaluated? 2018-01-08T19:18:19.867

28 Programming a numerical method in the functional style 2013-03-31T13:41:02.567

27 Monad-like structures in Mathematica 2016-09-04T18:41:15.167

27 How and why to use monadic programming in Mathematica? 2017-06-05T18:52:52.037

25 Using a list of tuples in a pure function 2012-03-18T11:45:31.713

24 Pseudo-currying in one line 2016-12-27T02:44:29.833

23 How can I trace a functional expression's evaluation visually? 2012-06-08T08:43:03.713

23 Shorter syntax for Fold and FoldList? 2014-07-14T07:37:32.320

21 Can someone explain this snippet: (#[#] &)[#[#][#] &] 2012-02-09T03:38:59.090

21 How to keep some of the results of the NestList 2012-06-21T05:16:34.203

20 How best to simulate n-body systems in a functional way? 2016-01-31T19:40:28.837

19 Are there advantages to using additional arguments of common functions rather than alternative ways of calculating with lists? 2012-03-08T21:37:27.410

19 Make MapIndexed listable 2014-08-22T04:39:07.667

18 Is there a more elegant and efficient way to write brainf*** style loops in Mathematica? 2012-02-10T02:35:13.223

18 How to map and sum a list fast? 2016-09-30T19:20:59.563

18 Cleanest way to take a[b[c]] to a[b][c] 2019-01-23T05:58:00.747

17 What is the most efficient way to map a linked list? 2014-04-08T17:44:50.627

17 How to Fold over lazy lists and over tasks, just as with Lists? 2015-04-13T01:03:26.273

17 Intuition behind FoldPair and SequenceFold? 2016-12-16T00:48:20.640

17 Is there a way to do this with Mathematica shorthand notation? 2017-08-22T14:25:17.007

16 How to replace the first occurence in an expression instead of replacing all? 2014-09-23T22:16:33.193

16 Puzzle — 20 People to consume 20 units of food under constraints 2017-02-25T16:34:11.580

16 Meaning of ## # 2018-12-07T13:25:24.287

15 Reproducing nested loops using Map? 2012-04-19T19:44:27.163

15 Using Through to evaluate complex expressions 2013-07-04T06:28:50.417

15 Hold attributes vs performance 2019-04-10T14:42:45.570

14 What's the most "functional" way to do Cholesky decomposition? 2012-06-11T14:19:44.773

14 How to improve this code for solving the "Mr.S and Mr.P" puzzle? 2012-10-30T14:24:41.220

14 How can I improve my code for drawing a tree? 2012-12-22T13:44:20.873

14 What's the cleanest functional-programming style way to perform this list operation? 2013-09-20T01:54:25.343

14 What makes mathematica a "functional programming language"? 2018-01-18T18:53:00.893

13 Applying a function to a Dataset column conditional on another slot's value 2014-09-15T23:44:20.577

13 Choose between `Apply` and `Map` 2015-01-05T20:29:32.570

13 Mimic a procedural, recursive clustering algorithm for site percolation using functional programming 2015-06-04T20:37:15.280

13 The equivalent of dplyr mutate with Dataset 2015-10-05T18:59:12.900

13 Is there research about the Mathematica programming paradigm? 2016-04-18T17:04:01.203

12 Thread a function over a list and with a non-atomic 2nd parameter? 2012-08-25T21:29:31.190

12 Function to draw densely interconnected layers in graph (e.g., neural net) 2017-01-13T22:37:54.587

12 Why use pure functions? 2018-01-26T18:14:04.393

11 Using sets of arguments from a list 2012-02-18T18:01:25.713

11 From iterative to functional 2012-09-29T21:21:12.317

11 How to write this without For loop 2013-01-13T20:46:20.600

11 Transform a list of functions to a composition 2013-04-12T10:26:42.497

11 How to find first list element that differs from average of N previous elements by more than a given amount? 2013-09-04T01:17:25.460

11 Handy / flexible directory tree operations 2015-05-15T10:35:36.607

11 List of functions to list of parameters 2015-11-07T04:13:04.357

11 How to construct the RHS of Wick's theorem 2016-04-24T13:43:30.960

11 Simplifying a reverse Fold for a Query 2017-02-03T01:46:51.193

11 How to build private function with built-in function's option 2017-02-19T05:11:02.203

11 Combining pure functions 2017-04-07T01:37:58.833

10 Cases[data,Colon[key,_]] vs. Cases[data,key:_] toward XPath, XQuery 2012-04-04T20:25:29.320

10 Core functions or operations that every aspiring Mathematica programmer should know? 2016-04-23T11:50:41.007

10 Operator currying: how to convert f[a,b][c,d] to {a+c,b+d}? 2019-06-15T12:30:02.007

10 Breaking "Functional Loops" and Doing Lazy Evaluation In Mathematica 2020-07-22T01:44:27.430

9 Can this code be written in a more functional style 2012-04-01T13:03:53.347

9 Alternatives to While Loops? 2012-10-15T22:23:45.203

9 Map over list of functions 2013-01-08T18:30:31.147

9 Better code to find Narcissistic number 2013-10-07T06:46:00.207

9 Evaluation in lambda function 2014-02-08T18:22:38.057

9 Functional equivalent of a For loop referring to consecutive elements in a list 2015-02-22T00:30:18.843

9 How to evaluate a function on a list until stable? 2015-03-16T11:09:09.033

9 Replacing a for-loop with something functional 2015-04-01T16:38:05.920

9 Unevaluated @ {args} versus Unevaluated /@ {args} 2015-07-11T23:39:57.023

9 Applying Function with SlotSequence and Lists 2018-04-28T21:43:38.167

9 Using vtx[] instead of vtx 2019-10-26T03:05:41.897

8 How to solve this iteration in the functional programming way? 2012-01-28T17:27:44.187

8 Define product derivative 2012-10-21T08:44:40.303

8 Rewriting For loop to FoldList or similar 2012-11-03T07:49:26.640

8 Feedback on Functional Programming: Propagation of uncertainty 2013-02-10T22:34:28.643

8 Update a function avoiding infinite recursion 2013-03-21T16:03:42.460

8 Mathematica's equivalent to the Python's Zip command in List-comprehension? 2014-09-22T22:17:39.157

8 Help going from iterative to functional 2015-03-04T15:02:07.953

8 Elegant functional equivalent to a nested loop? 2015-04-10T20:11:37.103

8 Elegant Replace Hold combination? 2016-09-19T22:53:35.820

8 Position-based Inline syntax for Curry 2018-03-14T18:38:25.303

8 Fold a list but alternate used functions 2020-05-03T21:11:24.503

8 How can I replace a set of Nested For Loops with a Functional Code Alternative? 2020-05-31T22:50:43.810

7 Why are we so sure about Map results? 2013-06-25T12:39:15.110

7 Replace For-loop with functional code 2013-09-15T22:39:07.807

7 Find the smallest positive integer that satisfies a certain condition 2014-06-18T20:07:56.343

7 AssociationMap to query Dataset across levels? 2014-07-24T22:12:22.273

7 How to get "Signature" of each element of "Permutation" output 2014-10-27T12:49:03.000

7 Functional-programming virus infection 2015-03-04T00:48:43.837

7 How would I use Map on a Dataset column? 2015-04-28T13:51:41.317

7 How to elegantly map multiple functions over a matrix? 2015-06-21T08:54:40.687