Re: Insulating data from code
- To: mathgroup at smc.vnet.net
- Subject: [mg66530] Re: Insulating data from code
- From: "J Siehler" <jsiehler at gmail.com>
- Date: Fri, 19 May 2006 03:39:24 -0400 (EDT)
- References: <e4ekai$9av$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hm, maybe a minor cosmetic improvement: partitionedAs[a_, b_] := ReplacePart[b, a, Position[b, _, {-1}, Heads ->False], MapIndexed[#2 &, a]]