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
Container Registry
Model registry
Operate
Environments
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
Christophe Junke
alexandria
Commits
655212e0
Commit
655212e0
authored
16 years ago
by
Tobias C. Rittweiler
Browse files
Options
Downloads
Patches
Plain Diff
alexandria-functions-really-shutup-notes.diff
parent
07f929ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
functions.lisp
+11
-11
11 additions, 11 deletions
functions.lisp
with
11 additions
and
11 deletions
functions.lisp
+
11
−
11
View file @
655212e0
...
@@ -2,6 +2,16 @@
...
@@ -2,6 +2,16 @@
(
declaim
(
inline
ensure-function
))
; to propagate return type.
(
declaim
(
inline
ensure-function
))
; to propagate return type.
(
declaim
(
ftype
(
function
(
t
)
(
values
function
&optional
))
ensure-function
))
(
defun
ensure-function
(
function-designator
)
"Returns the function designated by FUNCTION-DESIGNATOR:
if FUNCTION-DESIGNATOR is a function, it is returned, otherwise
it must be a function name and its FDEFINITION is returned."
(
if
(
functionp
function-designator
)
function-designator
(
fdefinition
function-designator
)))
(
defun
disjoin
(
predicate
&rest
more-predicates
)
(
defun
disjoin
(
predicate
&rest
more-predicates
)
"Returns a function that applies each of PREDICATE and MORE-PREDICATE
"Returns a function that applies each of PREDICATE and MORE-PREDICATE
functions in turn to its arguments, returning the primary value of the first
functions in turn to its arguments, returning the primary value of the first
...
@@ -120,14 +130,4 @@ with and ARGUMENTS to FUNCTION."
...
@@ -120,14 +130,4 @@ with and ARGUMENTS to FUNCTION."
"Expands into a lambda-expression within whose BODY NAME denotes the
"Expands into a lambda-expression within whose BODY NAME denotes the
corresponding function."
corresponding function."
`
(
labels
((
,
name
,
lambda-list
,@
body
))
`
(
labels
((
,
name
,
lambda-list
,@
body
))
#'
,
name
))
#'
,
name
))
\ No newline at end of file
(
declaim
(
ftype
(
function
(
t
)
(
values
function
&optional
))
ensure-function
))
(
defun
ensure-function
(
function-designator
)
"Returns the function designated by FUNCTION-DESIGNATOR:
if FUNCTION-DESIGNATOR is a function, it is returned, otherwise
it must be a function name and its FDEFINITION is returned."
(
if
(
functionp
function-designator
)
function-designator
(
fdefinition
function-designator
)))
\ No newline at end of file
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