[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defining an array in a let clause.
From: |
Heime |
Subject: |
Re: Defining an array in a let clause. |
Date: |
Mon, 05 Dec 2022 20:01:56 +0000 |
------- Original Message -------
On Monday, December 5th, 2022 at 7:42 PM, Jean Louis <bugs@gnu.support> wrote:
> * 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")
A vector solved it with (lc (make-vector 6 0))