help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating horizontal array


From: Oleksandr Gavenko
Subject: Re: creating horizontal array
Date: Sat, 17 Nov 2012 11:47:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On 2012-11-17, ishi soichi wrote:

> Hi. I have a general question about Emacs functionality.
>
> Is there a convenient way to produce an array like,
>
> tmp_arry = ["Toyota", "Honda", "Nissan", "VolksW", "Ford"]
>
> ?
>
> I am looking for an easy way to achieve this like cua-mode for
>
> a[0] = "this1"
> a[1] = "this2"
> a[2] = "this3"
> ...
>
Do you try read *info elisp*??

          (arrayp [a])
               => t
          (setq primes [2 3 5 7 11 13])
               => [2 3 5 7 11 13]
          (aref primes 4)
               => 11
          (setq w [foo bar baz])
               => [foo bar baz]
          (aset w 0 'fu)
               => fu
          w
               => [fu bar baz]

-- 
Best regards!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]