MathGroup Archive 1995

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

Search the Archive

Re: Puzzle


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.



  • Prev by Date: Playing several sounds simultaneously
  • Next by Date: Complex Matrices
  • Previous by thread: Playing several sounds simultaneously
  • Next by thread: Re: Re: Puzzle