MathGroup Archive 2013

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

Search the Archive

Re: apply rule to Partition


Using Unevaluated?


Unevaluated[Partition[Range[10], m]] /. m -> 2


{{1, 2}, {3, 4}, {5, 6}, {7, 8}, {9, 10}}


Adriano Pascoletti



2013/9/20 Joug Raw <jougraw at gmail.com>

>
> 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.
>
>
>




  • Prev by Date: Re: plotting integrals
  • Next by Date: Re: apply rule to Partition
  • Previous by thread: Re: apply rule to Partition
  • Next by thread: Re: apply rule to Partition