Seems an easy way is to input 1:10, read it in with realine, then split the
string and reconstruct the array.

Anyone would suggest more intelligent ways?

On Monday, January 12, 2015, K leo <cnbiz...@gmail.com> wrote:

> Is there a way to input at STDIN an array?  Suppose, I type in [1:10]
> at STDIN I would like the program to assign A=[1:10].
>
> Or, I know realine can take it as a string "[1:10]", so is there a way to
> convert the string to an array?  Somewhat similar to converting a string to
> an Int?
>

Reply via email to