MathGroup Archive 1995

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

Search the Archive

Selection of sublist using Cases

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg800] Selection of sublist using Cases
  • From: sands at rs1.npt.nuwc.navy.mil (Charlie Rosenthal)
  • Date: Wed, 19 Apr 1995 00:51:36 -0400

Mathgroup,

I wonder if someone could explain why the following doesn't
seem to work, and hopefully, what might.

I have a list such as:

hullHL = {{12. , 34., 3, "POLY","aTop",{1.,2.,3.}},
          {15. , 22., 2, "POLY","aBottom",{1.,2.,3.,4.}}
           .      .   .    .         .          .
           .      .   .    .         .          .

          }

I would like to form from this list a sublist consisting of all 
elements of the form {x_Real,y_Real,z_Integer,s1_String,"aTop",d_List}.

Cases[hullHL,{x_Real,y_Real,z_Integer,s_String,"aTop",d_List}]

returns {}. Why? 

Charlie E. Rosenthal, sands at rs1.npt.nuwc.navl.mil



  • Prev by Date: Re: FactorInteger Print Formatting
  • Next by Date: "unChopping" oddity explained--Thanks
  • Previous by thread: Factorization package
  • Next by thread: Re: Selection of sublist using Cases