Skip to content

Fuco1/prognth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

prognth

Emacs provides prog1, prog2 and progn to group statements and return the value of first, second or last form. This package extends this notion to allow arbitrary index. The macro prognth takes as a first argument the index of the form whose value is to be returned. If the index is 1, 2 or greater than length of the body, the standard emacs forms are used. Otherwise, this translates to

(prog1 (progn ... first INDEX forms) rest)

About

Return value of nth form.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published