![]() Volume 10, Issue 2 Articles In and Out Trott's Corner Beyond Sudoku New Products New Publications Calendar News Bulletins New Resources Classifieds Download This Issue Editorial Policy Staff and Contributors Submissions Subscriptions Advertising Back Issues Contact Information |
In and Out
Listable SubvaluesQ: I am writing functions for translating graphics primitives. The following function translates a single line object.
However, if I have a list of lines it does not work.
What is the best solution? A: You can map your function over the list of lines.
Adding a rule to f for the case of list arguments makes this mapping operation automatic.
David Park (djmp@earthlink.net) provides an alternative solution: define
Functions for transforming objects in 2 and 3 dimensions are defined in [1] with the packages available at [2].
|
||||||||
About Mathematica | Download Mathematica Player © 2006 Wolfram Media, Inc. All rights reserved. |