Sandiego2
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 5 articles for 0.301 sec
Many thanks to Daniel for his input. Through some trial and error I came up with a solution with the desired functionality myself which I post for those interested in this functionality. With this implementation you have 1) The ability to retrieve keys at level1 2) Given a level 1 key the ability to retrieve the keys at level2 3) Use Map and Apply to retrieve all keys and data as required     

Group: comp.softsys.math.mathematica · Group Profile · Search for Sandiego2 in comp.softsys.math.mathematica
Author: Mac
Date: Jun 2, 2008 01:31

Hi Mac, a possible way to do this: store the data in a nested List. There is no need to distinguish between key and data, the data is the entry at the leaf. Use functions that extract the needed part, if you specify the data as argument, you may even process multiple "data sets". Here is an example with 2 keys: dat={ {x1,{x11,x12}}, {x2,{x21,x22}}, {x3,{}} }
Show full article (4.65Kb) · Show article thread
With some help from a previous post I've become quite proficient at simple data functions and use them quite frequently. Here a simplified example: Clear[f] f["a"] := 1; f["b"] := 2; f[] := Map[#[[1, 1, 1]] &, DownValues[f][[2 ;; All]]]; then I use f[] to get a list of keys f[] {"a", "b"} and retrieve the function data using for instance f["a"] to retrieve 1. However I''m stumped     

Group: comp.softsys.math.mathematica · Group Profile · Search for Sandiego2 in comp.softsys.math.mathematica
Author: dh
Date: May 29, 2008 23:57

Eat shit fucker. "Cujo DeSockpuppet" <cujo@insurgent.org> wrote in message news:et0cl0$afs$1@blackhelicopter.databasix.com... "Niel Humphreys" <admin@sznzozwzdzoznzczozmzpzuztezrzsz.co.uk> wrote in news:UHNIh.11491$tD2.2356@newsread1.news.pas.earthlink.net: 11 70 ms 71 ms 70 ms fe0-0.clr2.sandiego2-ca.us.xo.net [71.5.179.82] 12 76 ms 80 ms 77 ms algx
Show full article (3.49Kb) · Show article thread
"Niel Humphreys" <admin@sznzozwzdzoznzczozmzpzuztezrzsz.co.uk> wrote in news:UHNIh.11491$tD2.2356@newsread1.news.pas.earthlink.net: 11 70 ms 71 ms 70 ms fe0-0.clr2.sandiego2-ca.us.xo.net [71.5.179.82] 12 76 ms 80 ms 77 ms algx-cybernetcafe2000-com-5645.z85-45- 65.customer.algx.net [65.45.85.190] 13 77 ms 77 ms 76 ms algx-cybernetcafe2000-com-5645.z85-45     

Group: comp.softsys.math.mathematica · Group Profile · Search for Sandiego2 in comp.softsys.math.mathematica
Author: Mac
Date: May 29, 2008 05:45

Show full article (2.36Kb)
    

Group: alt.fraud · Group Profile · Search for Sandiego2 in alt.fraud
Author: Niel Humphreys
Date: Mar 11, 2007 22:46

Show full article (2.77Kb)
    

Group: alt.fraud · Group Profile · Search for Sandiego2 in alt.fraud
Author: Cujo DeSockpuppet
Date: Mar 10, 2007 23:55

Show full article (2.54Kb)