Re: functional programming

*To*: mathgroup at smc.vnet.net*Subject*: [mg75165] Re: [mg75132] functional programming*From*: Sseziwa Mukasa <mukasa at jeol.com>*Date*: Thu, 19 Apr 2007 04:29:59 -0400 (EDT)*References*: <200704180900.FAA08243@smc.vnet.net>

On Apr 18, 2007, at 5:00 AM, Raj wrote: > 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} Function[{var},Select[tsome,var-1281<=#[[2]]<=1280&]]/@{list of values over which the variable varies} Regards, Ssezi

**References**:**functional programming***From:*Raj <rajanikanth@gmail.com>