2
$\begingroup$

This answer says that Listable just makes the function automatically apply MapThread to its arguments.

Does anyone have a simple example of when explicitly using MapThread is better (or simply more convenient) then just giving a function the Listable attribute?

My guess is that if I have a function that works on lists (concatenating, etc), this would be such a case. Or perhaps theres an easy example using Plot (since a list of plot may not be desirable).

$\endgroup$
2
  • 1
    $\begingroup$ Explicit is better than implicit? $\endgroup$ – Alan May 29 at 17:29
  • $\begingroup$ If it is a built in function, it's probably not a good idea to change its Listable status, else you might break something internally. $\endgroup$ – bill s May 29 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.