-
storing a
lambda expression in a
symbol using the
defun macro. (
defun foo (a b c d) (+ a b c d)) (
defun f (a) b...)
defines a new
function named f in the...
-
consisting of
members Marie Louise Werth,
Giusep Quinter,
Ursin Defuns and Gion
Defuns, who
perform mainly in the
Romansh language. The
group was formed...
-
Scheme In One
Defun, or
humorously Scheme In One Day (SIOD) is a
programming language, a
dialect of the
language Lisp, a small-size
implementation of...
-
requirements imposed upon the
parameters p, q and s (seed) are not checked. (
defun get-number-of-1-bits (bits) "Returns the
number of 1-valued bits in the...
- in
either an
existing Emacs Lisp
source file or an
empty Emacs buffer: (
defun my-split-window-func () (interactive) (split-window-below) (set-window-buffer...
- floating-point
value 42.1 ;;
Define a
function that
squares a number: (
defun square (x) (* x x)) ;;
Execute the function: (square 3) ;
Returns 9 ;; The...
- Total) -> Total; sum([H|T], Total) -> sum(T, H+Total). LFE: (
defun sum (l) (sum l 0)) (
defun sum (('() total) total) (((cons h t) total) (sum t (+ h total))))...
- FAS and VLX files). A
simple ****o
world program in
AutoLISP would be: (
defun ****o ( ) (princ "\n****o World!") (princ) ) Note the
final line inside...
- be
viewed and
changed using the DO****ENTATION function. For instance: (
defun foo () "hi there" nil) (do****entation #'foo 'function) => "hi there" The...
- S-expressions,
usually using prefix notation.
Example in
Common Lisp: (
defun factorial (x) (if (zerop x) 1 (* x (factorial (- x 1))))) S-expressions...