MathGroup Archive 2007

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

Search the Archive

functional programming


Could somebody tell me how to do this

tsome = {{35, 38}, {2064, 2068}, {2182, 2183}};
Select[tsome, 1280 - 1281 =E2=89=A4 #[[2]] =E2=89=A4 1280 &]

Now instead of using 1280 in the Select function, I want to use a
variable and get the values as this variable varies. I know that a
Table can be used and the value of the variable can be varied. But if
possible, I want to do it in a "Truly functional way".

for example something like

Select[tsom, var-1281<=#[[2]]<=1280&]&/@{list of values over which the
variable varies}

Thanks,

Raj



  • Prev by Date: Re: Re: ImplicitPlot errors
  • Next by Date: Re: Variable containing code
  • Previous by thread: Re: Re: question about Protect
  • Next by thread: Re: functional programming