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: [mg98294] Re: Map to nested list
  • From: Francesco <b.gatessucks at gmail.com>
  • Date: Sun, 5 Apr 2009 06:36:57 -0400 (EDT)
  • References: <gr4jh9$a7a$1@smc.vnet.net>

in = {{1, 1/5}, {1, 1/5}};
Unprotect[IntegerQ];
SetAttributes[IntegerQ, Listable];
IntegerQ[#] & /@ in

-Francesco

athanase 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: Map to nested list
  • Previous by thread: Re: Map to nested list
  • Next by thread: Re: Map to nested list