all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* creating horizontal array
@ 2012-11-17  6:44 ishi soichi
  2012-11-17  9:47 ` Oleksandr Gavenko
  0 siblings, 1 reply; 2+ messages in thread
From: ishi soichi @ 2012-11-17  6:44 UTC (permalink / raw
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

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"
...

soichi

[-- Attachment #2: Type: text/html, Size: 555 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: creating horizontal array
  2012-11-17  6:44 creating horizontal array ishi soichi
@ 2012-11-17  9:47 ` Oleksandr Gavenko
  0 siblings, 0 replies; 2+ messages in thread
From: Oleksandr Gavenko @ 2012-11-17  9:47 UTC (permalink / raw
  To: help-gnu-emacs

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!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-17  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-17  6:44 creating horizontal array ishi soichi
2012-11-17  9:47 ` Oleksandr Gavenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.