From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id C1BFC3858C60 for ; Sun, 26 Sep 2021 12:33:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C1BFC3858C60 Received: by mail-lf1-x131.google.com with SMTP id y26so23963020lfa.11 for ; Sun, 26 Sep 2021 05:33:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Oxbw7HP236QSFXmNF3nsx6laMihUsP2zqen6GRBKCNE=; b=lcrZcehxJzezu2FifKvVE4b90MqejM2/qzUZO0s4YfWg6qw0ONBc5Pd/8OjylvPpwg vhTwuk8V2rkkdE2xI+Ig7H10Kky8Wuu/y2IuIRtxzwpOLQl/LOYQz1M7P1VC+6+pyLun TULQz/4Au+nYWDeBNc1mtxubtauwOExCBY2EUpnNLWsER2Xz1qZrLoQVvashTDmMN3BE PuscobuphRjLt1T8x0GBgHIky+b/4w/GOPk+kMLlnQd+w/iOAp6nxYmHaG6rQrSpCn1s 0RAkI2b33WlreSKLK7WNHLBm8ct7WsRX6KNI+2gmDTxRSpbTmu+WdYp5NMJN+n0DnFFd YXIg== X-Gm-Message-State: AOAM531jF+u8acaUajBwYbC7jw6Yom0k+g7PqLf5CJWn+rMeLcpZ21+6 55ta09mhnbk6OBPAshhdHwPBcNXNPi5zqlbcNMwfZ7AB X-Google-Smtp-Source: ABdhPJzhKs9hgCmc9r759Zcsy5JfDSKr9RSJySbQR70MQYUgjnVxU4lkq4EYA1tB5ARaNENxZgUto+3MH98KTs49xP4= X-Received: by 2002:a2e:8897:: with SMTP id k23mr7209229lji.15.1632659599758; Sun, 26 Sep 2021 05:33:19 -0700 (PDT) MIME-Version: 1.0 References: <9C7CF706-65C5-40E5-8949-EB836F398DDD@free.fr> In-Reply-To: <9C7CF706-65C5-40E5-8949-EB836F398DDD@free.fr> From: Arvydas Silanskas Date: Sun, 26 Sep 2021 15:33:09 +0300 Message-ID: Subject: Re: values To: Philippe de Rochambeau Cc: kawa mailing list X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: kawa@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Kawa mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2021 12:33:22 -0000 Hi generally you would use constructs like define-values or let-values to declare multiple variables which will be bound to the received multiple values. There is also a more primitive call-with-values construct for piping those values as arguments to some procedure. To get a list, you could use `(call-with-values (lambda () (values 1 3)) list)`. Arvydas 2021-09-26, sk, 14:57 Philippe de Rochambeau via Kawa ra=C5=A1=C4=97: > Hello, > how do you retrieve the first item returned by the values procedure? > I=E2=80=99ve tried (first (values 1 3)), but to no avail, because values = doesn=E2=80=99t > return a list. > Many thanks. > Philippe