Map vs. Table
- To: mathgroup at smc.vnet.net
- Subject: [mg75377] Map vs. Table
- From: zac <replicatorzed at gmail.com>
- Date: Fri, 27 Apr 2007 05:25:00 -0400 (EDT)
Dear Group, consider a set of data (y values): data = Table[i*j, {i, 5}, {j, 10}] I want to label each Integer with an x value: label := Table[{i, #} & /@ data[[i]], {i, Length[data]}] I've understand that list creation is much faster with Map than with Table. Is there an effective way to convert the Table to Map in the label function (either with nested Map or to incorporate the Table function into the Map)? Would it be really faster for very large datasets than with Table? thanks Istvan Zachar