Linked Questions

30 votes
5 answers
4k views

Second level depth pure function?

I have the following working construction: Select[ln125, # == Nearest[ln125, 551.748][[1]] &] Here, ln125 is a one ...
DimG's user avatar
  • 608
7 votes
2 answers
466 views

Pure function on pure function

Given t1 = {2, 4, 8, 16}; t2 = {1, 5, 9}; First[Select[t1, # > 1 &]] First[Select[t1, # > 5 &]] First[Select[t1, # > 9 &]] can somehow be ...
user57467's user avatar
  • 2,304
7 votes
1 answer
4k views

How to prevent name clash between arguments of different functions?

Per comments, including here the description of the problem lifted from another site: Mathematica Pure Function Scope Problem Consider this snippet: ...
Michael's user avatar
  • 757
6 votes
3 answers
292 views

Apply pattern using a Slot (#) to each list element using a second slot

I am trying to find a neat way of applying an operation to each list element, but do not know how to properly use multiple slots or whether it is actually possible to solve this with multiple slots. I ...
michelangelov's user avatar
6 votes
3 answers
211 views

Nested lamdas: MapThreading a MapAt lambda

Consider a set of (here) 3 series ...
lineage's user avatar
  • 1,114
8 votes
1 answer
310 views

How to supply argument to pure function when slot is already defined?

Here's an example of a pure function: 3^# > 100 & I can supply any value I please to the function, by placing that value after the prefix. E.g.: ...
theorist's user avatar
  • 3,548
6 votes
2 answers
264 views

Problem with `Derivative`/`Series` and `InverseFunction`

Here is the Mathematica code I'm asking about: ...
user202729's user avatar
5 votes
2 answers
161 views

bind specific 'Slots' to specific 'Map'

Is it possible to construct a pure function using multiple slots, with the following concept :       Binding   specific slot    to    specific apply or map For example : In this example, To ...
imida k's user avatar
  • 4,037
4 votes
2 answers
150 views

Slots inside nested pure functions

I'd like /@ instead of Table or Map. But let we have it inside pure function: ...
lesobrod's user avatar
  • 1,085
2 votes
0 answers
122 views

How to use Select and MemberQ together with Map correctly?

I have a list with quite a few elements. Each element is a rule of the type vector-> number such as {1,2,3,4}->1.435 and ...
Jesuel Marques's user avatar