Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about lisp-macros

Read more about lisp-macros

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - lisp-macros

How to convert this Common Lisp function into a macro?

I am using SBCL, Slime, and Emacs to develop in Common Lisp. I have this function: (defun build-cond-action-pairs (&rest var) (labels ((aux (xs-left accu) (cond ((null (cddr xs-left...
test-img

Pedro Delfino

macros

common-lisp

lisp-macros

Votes: 0

Answers: 2

Latest Answer

;; from: ;; (build-cond-action-pairs "fish are cool" (incf var-a) ;; "amphibians are cool" (incf var-b)) ;; the macro-expansion should be: ;; (("fis...
test-img

Gwang-Jin Kim

How to re-write this Common Lisp macro avoiding the back-quote notation?

I am trying to learn Common Lisp with the book Common Lisp: A gentle introduction to Symbolic Computation. In addition, I am using SBCL, Emacs, and Slime. In the last chapter, on Macros, the author pr...
test-img

Pedro Delfino

macros

common-lisp

lisp-macros

Votes: 0

Answers: 2

Latest Answer

What you are looking for is something like (defmacro list-two-from-one (func object) (list func (list 'quote object) (list 'quote object))) basically, the body of a macro should return the code, th...
test-img

sds

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved