Skip to main content

Timeline for Thread and RandomReal

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Jun 30, 2020 at 5:47 comment added Esme_ Thanks SneezeFor16Min and xzczd for the explanations and detailed answers. Despite many years of using Mathematica I'm still only touching the surface!
Jun 30, 2020 at 4:04 comment added SnzFor16Min @Esme_ Yes, please see my updated answer.
Jun 30, 2020 at 4:03 history edited SnzFor16Min CC BY-SA 4.0
Fix Typo
Jun 30, 2020 at 3:48 comment added xzczd @Esme_ Yes, in this case the {1,2,3} is not explicit. In other words, Thread cannot see the {1,2,3} inside list. A possible solution: list = {1, 2, 3}; With[{list = list}, Thread[Unevaluated@f[list, 4]]], another: list = {1, 2, 3}; Thread[Unevaluated@f[#, 4]] &@list.
Jun 29, 2020 at 22:57 comment added Esme_ Hope I can get away with a follow-up question. Why does this fail if you replace the {1,2,3} with something like list = {1,2,3}; Thread[Unevaluated@f[list, 4]] ? Is it because of the Unevaluated?
Jun 29, 2020 at 8:36 vote accept Esme_
Jun 29, 2020 at 8:17 history answered SnzFor16Min CC BY-SA 4.0