Re: Puzzle
- To: mathgroup at smc.vnet.net
- Subject: [mg2419] Re: [mg2258] Puzzle
- From: Patrick Jemmer <paddy at sun4.bham.ac.uk>
- Date: Sun, 5 Nov 1995 16:05:48 -0500
- Organization: The University of Birmingham, UK.
In trying to tidy this up, I attempted: lst={6, 44, 30, 15, 24, 12, 33, 23, 18} chk={a___, b_, c___, d_, e___, f_, g___, h_, i___} cnd=b + d + f + h == 100 sln={b,d,f,h} lst/.chk/;cnd->sln But this doesn't work... nor does: chk1=chk/;cnd lst/.chk1->sln nor does chk2=Hold[chk/;cnd] lst/.ReleaseHold[chk2]->sln Any ideas to help sort out my confusion?? Cheers, patrick.