From: S. B. Gray on
Is there anything like Print[hugetable,{10}] which would show the first
10 elements of hugetable? One can do it by making a new table but there
should be an immediate way.

Steve Gray

From: Bill Rowe on
On 7/14/10 at 5:35 AM, stevebg(a)ROADRUNNER.COM (S. B. Gray) wrote:

>Is there anything like Print[hugetable,{10}] which would show the
>first 10 elements of hugetable? One can do it by making a new table
>but there should be an immediate way.

Easily done. Do Print[hugetable[[;;10]]]


From: Tomas Garza on
Try Shallow or Short.

-Tomas

> Date: Wed, 14 Jul 2010 05:35:55 -0400
> From: stevebg(a)ROADRUNNER.COM
> Subject: Printing part of table
> To: mathgroup(a)smc.vnet.net
>
> Is there anything like Print[hugetable,{10}] which would show the first
> 10 elements of hugetable? One can do it by making a new table but there
> should be an immediate way.
>
> Steve Gray
>
From: Helen Read on
On 7/14/2010 5:35 AM, S. B. Gray wrote:
> Is there anything like Print[hugetable,{10}] which would show the first
> 10 elements of hugetable? One can do it by making a new table but there
> should be an immediate way.
>
> Steve Gray
>

Take[hugetable, 10]

--
Helen Read
University of Vermont

From: David Bailey on
On 14/07/10 10:35, S. B. Gray wrote:
> Is there anything like Print[hugetable,{10}] which would show the first
> 10 elements of hugetable? One can do it by making a new table but there
> should be an immediate way.
>
> Steve Gray
>
Look up the documentation for Part (which is often abbreviated using the
[[.....]] notation).

Get to grips with what Part can do, and you will answer the above
question and 100 others!

David Bailey
http://www.dbaileyconsultancy.co.uk