Re: Sequence and Or
- To: mathgroup at smc.vnet.net
- Subject: [mg34190] Re: Sequence and Or
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Thu, 9 May 2002 05:15:50 -0400 (EDT)
- References: <abaf3c$s3n$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Bob, I get {True,False,True} Or@@% Sequence@@% Or[%] {True,False,True} True True True The second output is from Or@@<first output> = Or@@{{True,False,True} -> Or[True,False,True] --> True The third output is from Sequence@@<second output> = Sequence@@True --> True (Apply acts on FullForms, compare f@@a) The forth output is from Or[<third output>] = Or[True] --> True -- Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565 "DrBob" <majort at cox-internet.com> wrote in message news:abaf3c$s3n$1 at smc.vnet.net... > When I evaluate the following... > > {True,False,True} > Or@@% > Sequence@@% > Or[%] > > the outputs are: > > {True,False,True} > True > Sequence[True,False,True] > Sequence[True,False,True] > > while I had expected: > > {True,False,True} > True > Sequence[True,False,True] > True > > What am I missing? > > Bobby Treat > > >