In my code below I only want r.
(let* ((frac (multiple-value-bind (f r) (floor amt 100) r))) ..use frac..)
I get compilation warnings that indicate an unused variable f.
Is there an idiomatic way to write this?
declare ignore usually useful in this context:
declare ignore
(multiple-value-bind (_ frac) (floor amt 100) (declare (ignore _)) ; use frac)
NTH-VALUE allows you to select one of the return values of the form. This will look like your fragment:
(let* ((frac (nth-value 1 (floor amt 100)))) ...)
Source: https://habr.com/ru/post/1538231/More articles:How to build relative frequencies in R or Stata - rHow to create temporary files. # Filename` in `/ tmp`, not in the working directory - emacsHow to create a “loading screen” for a first spa visit SPA session - angularjsIn python legend matplotlib shows the first entry of a list only - pythondust.js - render the first element of an array - jsonHow can I create a Python module in Hy? - pythonHow to set filter for DateSent for getMessages in Java using Twilio REST API - javaCompress directory in zipfile using Commons IO - javaCould not find libtoolize command in cygwin - cygwinFirefox SDK for easy storage and synchronization with Firefox - firefox-addonAll Articles