MathGroup Archive 2009

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

Search the Archive

Re: Map to nested list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98278] Re: Map to nested list
  • From: Leonid Shifrin <lshifr at gmail.com>
  • Date: Sun, 5 Apr 2009 06:33:57 -0400 (EDT)
  • References: <200904030905.EAA10477@smc.vnet.net>

Hi,

In[1] = Map[IntegerQ, {{1, 1/5}, {1, 1/5}}, {-1}]

Out[1] = {{True, False}, {True, False}}

Will work for any depth as long as leaves are numbers.

Regards,
Leonid

On Fri, Apr 3, 2009 at 2:05 AM, 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: How to remove all cycles
  • Next by Date: Re: Map to nested list
  • Previous by thread: Re: Map to nested list
  • Next by thread: Re: Please help, factorisation question