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

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

Re: Defining an array in a let clause.


From: Jean Louis
Subject: Re: Defining an array in a let clause.
Date: Mon, 5 Dec 2022 22:42:38 +0300
User-agent: Mutt/2.2.9+54 (af2080d) (2022-11-21)

* Heime <heimeborgia@protonmail.com> [2022-12-05 14:42]:
> 
> How can I set up an array of five elements in a let clause.
> 
>   (let ( (ss (nth 0 (decode-time)))    ; seconds
>          (mm (nth 1 (decode-time)))    ; minutes
>          (hh (nth 2 (decode-time)))    ; hours
>          (us (nth 2 (current-time)))   ; microsecond
>          (ps (nth 3 (current-time)))   ; picosecond
>          (lc (make-array '(5))) )

For array references, evaluate below functions:

(info "(elisp) Array Functions")

(info "(elisp) Sequences Arrays Vectors")

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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