MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: apply rule to Partition


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 



  • Prev by Date: Re: Parallel Kernel Status
  • Next by Date: Re: Extract columns based on their the title in header
  • Previous by thread: Re: apply rule to Partition
  • Next by thread: Re: apply rule to Partition