Linked Questions

11
votes
3answers
722 views

Does Mathematica have Month Range and Day range?

It is known that CharacterRange["a", "z"] gives list of characters from a to z. Does Mathematica have something similar for weekdays and months of the year? ...
3
votes
3answers
1k views

Assigning to multiple variables in a list the values in another list

I have two lists, one contains the variables and the other the corresponding values that the variables should take. ...
2
votes
3answers
82 views

Interdependent SetterBars with symbolic contents

In this question, I learned how to cascade or nest interdependent Setter and SetterBar controls with numerical Ranges. The ...
47
votes
2answers
3k views

Memoization with pure functions?

Is this possible? If I have a simple function, say: f=If[#>0,1,2]& then for each value of # this will re-evaluate f right? Is it possible to define a ...
9
votes
2answers
539 views

Association and rudimentary object-oriented programming

Doesn't Association provide us rudimentary object oriented programming via constructs like ...
8
votes
2answers
159 views

Timing: extracting from List VS extracting from Association

I was wondering, why is extracting from an Association slightly faster than extracting from a List? ...
38
votes
1answer
2k views

Which Object-oriented paradigm approach to use in Mathematica?

Which Object-Oriented Paradigm (OOP) approach to use in Mathematica for: general implementation, or a particular project? There are a lot of related questions and answers in MSE on doing OOP that ...
9
votes
1answer
105 views

How to efficiently write into PackedArrays that are stored in Associations?

Using Association to generate complicated data types is very comfortable, in particular if one uses those tricks from How to make use of Associations?. However, I ...
7
votes
1answer
232 views

How does thing[“property”] syntax work?

Many builtin "things" support the (usually undocumented) syntax thing["property"], and usually the available properties can be listed using thing["Properties"] (thing["Methods"] might work too). ...
5
votes
1answer
300 views

Does Mathematica support an unordered set (e.g. hashset) data structure?

Does Mathematica support any data structure representing an unordered set (without multiplicity) of Mathematica expressions? I would like this data structure to support $O(1)$ insertion, deletion, and ...
4
votes
1answer
172 views

Create tree association using table

Suppose I have a table like the following (This example is simplified, actual table is much larger), it is read from external files: ...
3
votes
1answer
190 views

Using Associations and Pattern matching in numerical functions possibly broken

It looks like the very young feature of pattern matching (/replacing) within Associations (https://mathematica.stackexchange.com/a/119542/6804), with or without ...
0
votes
1answer
56 views

How does one create getter methods that depend on a variable (besides its argument)?

In the (as always) insigthful answer by Leonard Shifrin to this MMA SE post https://mathematica.stackexchange.com/questions/52393/how-to-make-use-of-associations ...
7
votes
0answers
96 views

Time complexity to choose the right overload from the memoized function

If we want to save some outputs of the function, we often use the memoization pattern as follows, f[x_]:=f[x]=x f/@Range[10^5] If I call this function many times ...
2
votes
0answers
94 views

List, Association, and Dataset, according to what principles to choose which one to use?

List, Association and Dataset are three 'objects' that can be used to store data in MMA. So ...

15 30 50 per page