Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

creating horizontal array

6 views
Skip to first unread message

ishi soichi

unread,
Nov 17, 2012, 1:44:19 AM11/17/12
to help-gn...@gnu.org
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

Oleksandr Gavenko

unread,
Nov 17, 2012, 4:47:38 AM11/17/12
to help-gn...@gnu.org
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!


0 new messages