« first day (2942 days earlier)      last day (1843 days later) » 

11:01
Hi folks, I don't understand why the part operation at the end is not evaluated?
lst = 1 + x + x^2 + x^3;
pos = Position[lst, x]
lst @@ # & /@ pos
The output is as follows.
{(1 + x + x^2 + x^3)[2], (1 + x + x^2 + x^3)[3,
  1], (1 + x + x^2 + x^3)[4, 1]}
Rather what I want to obtain as follows:
{x,x,x}
Could you tell me the reason? I left my learning several years and I forgot almost everything. :-)
 
1 hour later…
12:19
@MoneyOrientedProgrammer A free answer: maybe Part[lst, Sequence @@ #] & /@ pos?
Or lst[[Sequence @@ #]] & /@ pos
13:01
Thank you. I already got the answer from @kglr :

lst[[##]]@@@pos
 
3 hours later…
15:46
@Mithical Ok. In any case, it wasn't an edit that added value to the post, so overriding it doesn't feel inappropriate.
 
1 hour later…
17:40
@rm-rf note that the edit was immediately reapplied by J.M., I can’t tell from your answer whether you saw that or not. (Reapplying a change one doesn’t feel adds any value seems strange.)
 
3 hours later…
20:35
posted on February 06, 2020

Science & Technology In this episode of Live CEOing, Stephen Wolfram discusses the language design of Wolfram Language functions. If you'd like to contribute to the discussion in future episodes, you can participate through this YouTube channel or through the official Twitch channel of Stephen Wolfram here: https://www.twitch.tv/stephen_wolfram/ Follow us on our official social media cha

 
2 hours later…

« first day (2942 days earlier)      last day (1843 days later) »