Skip to content

Instantly share code, notes, and snippets.

@Bike
Created March 9, 2022 19:09
Show Gist options
  • Save Bike/0e5db3b75efe8c290c48220f79837154 to your computer and use it in GitHub Desktop.
Save Bike/0e5db3b75efe8c290c48220f79837154 to your computer and use it in GitHub Desktop.
concatf
(defmacro concatf (str &rest strings &environment env)
(multiple-value-bind (temps vals stores write read)
(get-setf-expansion str env)
`(let* (,@(mapcar #'list temps vals))
(multiple-value-bind (,@stores)
(concatenate 'string ,read ,@strings)
,write))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment