MathGroup Archive 1995

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

Search the Archive

Re: Help with lists

Andre Bindon <abindon at>
in [mg2782] Help with lists
wants to find how many members of

list = {-5,-4,-3,-2,-1,0,1,2,3,4,5}

lie in the range -2 to 2.

Here's one way (Count takes a pattern as its second entry).



Of course we can use other patterns for the second entry

Allan Hayes
hay at

  • Prev by Date: Re: Mma under Win95 (slow...)?
  • Next by Date: Re: Help with lists
  • Previous by thread: Help with lists
  • Next by thread: Re: Help with lists