MathGroup Archive 2009

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

Search the Archive

Re: Map to nested list


Map[IntegerQ, {{1, 1/5}, {1, 1/5}}, {2}]

{{True, False}, {True, False}}

IntegerQ /@ # & /@ {{1, 1/5}, {1, 1/5}}

{{True, False}, {True, False}}


Bob Hanlon

---- athanase <aeoost at gmail.com> wrote: 

=============
this expression

IntegerQ/@{1,1/5}

outputs {True, False}

which operator is used for nested list?

so 

IntegerQ ? {{1,1/5},{1,1/5}}

outputs {{True, False},{True, False}}


thankyou :)



  • Prev by Date: Re: Map to nested list
  • Next by Date: How to remove all cycles
  • Previous by thread: Re: Map to nested list
  • Next by thread: Re: Map to nested list