Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
alexandria
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Fedorov
alexandria
Commits
b8e32bcd
Commit
b8e32bcd
authored
17 years ago
by
Nikodemus Siivola
Browse files
Options
Downloads
Patches
Plain Diff
Documentation and comment tweaks
parent
5ce466a9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
binding.lisp
+3
-4
3 additions, 4 deletions
binding.lisp
functions.lisp
+3
-2
3 additions, 2 deletions
functions.lisp
with
6 additions
and
6 deletions
binding.lisp
+
3
−
4
View file @
b8e32bcd
...
...
@@ -2,7 +2,7 @@
(
defmacro
if-let
(
bindings
then-form
&optional
else-form
)
"Creates new variable bindings, and conditionally executes either
THEN-FORM or ELSE-FORM
(
default
ing
to NIL
)
.
THEN-FORM or ELSE-FORM
. ELSE-FORM
default
s
to NIL.
BINDINGS must be either single binding of the form:
...
...
@@ -32,7 +32,7 @@ effect."
(
defmacro
if-let*
(
bindings
then-form
&optional
else-form
)
"Creates new variable bindings, and conditionally executes either THEN-FORM
or ELSE-FORM
(
default
ing
to NIL
)
.
or ELSE-FORM
. ELSE-FORM
default
s
to NIL.
BINDINGS must be either single binding of the form:
...
...
@@ -89,8 +89,7 @@ implicit PROGN."
,@
forms
))))
(
defmacro
when-let*
(
bindings
&body
forms
)
"Creates new variable bindings, and conditionally executes either THEN-FORM
or ELSE-FORM (defaulting to NIL).
"Creates new variable bindings, and conditionally executes FORMS.
BINDINGS must be either single binding of the form:
...
...
This diff is collapsed.
Click to expand it.
functions.lisp
+
3
−
2
View file @
b8e32bcd
...
...
@@ -82,7 +82,8 @@ the last."
it is called with to FUNCTION."
(
declare
(
optimize
(
speed
3
)
(
safety
1
)
(
debug
1
)))
(
lambda
(
&rest
more
)
(
declare
(
dynamic-extent
more
))
(
declare
(
dynamic-extent
more
))
;; Using M-V-C we don't need to append the arguments.
(
multiple-value-call
function
(
values-list
arguments
)
(
values-list
more
))))
(
define-compiler-macro
curry
(
function
&rest
arguments
)
...
...
@@ -102,7 +103,7 @@ with and ARGUMENTS to FUNCTION."
(
defmacro
named-lambda
(
name
lambda-list
&body
body
)
"Expands into a lambda-expression within whose BODY NAME denotes the
function
corresponding function."
corresponding function."
(
let
((
simplep
(
not
(
intersection
lambda-list-keywords
lambda-list
))))
(
if
simplep
;; Required arguments only, no need for APPLY
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment