Re: apply rule to Partition
- To: mathgroup at smc.vnet.net
- Subject: [mg131698] Re: apply rule to Partition
- From: Itai Seggev <itais at wolfram.com>
- Date: Sat, 21 Sep 2013 04:39:30 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
- References: <20130920110657.874FE69E8@smc.vnet.net>
On Fri, Sep 20, 2013 at 07:06:57AM -0400, Joug Raw wrote: > > I want to use rule to simplify my code. A piece of my code use Partition > and I tried something like: > > Partition[Range[10], m] /. m -> 2 > > It give me error message. My real code is in fact more complicated and this > way failed to give me an output. How could I make it work? > Thanks. Block[{m=2}, Partition[Range[10],m]] -- Itai Seggev Mathematica Algorithms R&D 217-398-0700
- References:
- apply rule to Partition
- From: Joug Raw <jougraw@gmail.com>
- apply rule to Partition