Re: substitue expression for function f as argument in mma
- To: mathgroup at smc.vnet.net
- Subject: [mg3643] Re: substitue expression for function f as argument in mma
- From: Xah Lee <xah at best.com>
- Date: Sun, 31 Mar 1996 00:51:35 -0500
- Organization: Best Internet Communications
- Sender: owner-wri-mathgroup at wolfram.com
George Jefferson wrote: > where a mma function takes a function as an argument, > eg: Select[expr,f] > and "f" is a simple function say > f[x_] := x < 0 > is there a way to define the function directly in the > argument list? something like: > Select[expr, arg < 0] >... use Pure function, Select[ Range[-5,5], (#<0)&] or in a less cryptic form Function[x,x<0]. Select[ Range[-5,5], Function[x,x<0]] See the Mathematica book about ontology or epistemology (^_^). Xah 74631.731 at compuserve.com; xah at best.com http://www.best.com/~xah/ Nonsense of the day: 1+1=2 ==== [MESSAGE SEPARATOR] ====