Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Map to nested list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98260] Re: Map to nested list
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 5 Apr 2009 06:30:32 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

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: Re: help in constructing a binomial consequence
  • Previous by thread: Re: Map to nested list
  • Next by thread: Re: Map to nested list