Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Carl Shapiro
cmucl
Commits
5552b6ee
Commit
5552b6ee
authored
22 years ago
by
toy
Browse files
Options
Downloads
Patches
Plain Diff
The deftransform for find should return the item we found, not the
item we were looking for (because of :test-not).
parent
00e106d4
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
compiler/seqtran.lisp
+8
-6
8 additions, 6 deletions
compiler/seqtran.lisp
with
8 additions
and
6 deletions
compiler/seqtran.lisp
+
8
−
6
View file @
5552b6ee
...
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/seqtran.lisp,v 1.2
4
200
0
/0
5/02 04:44:28 dtc
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/seqtran.lisp,v 1.2
5
200
3
/0
2/21 16:06:57 toy
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -183,11 +183,13 @@
(
deftransform
find
((
item
sequence
&key
from-end
(
test
#'
eql
)
(
start
0
)
end
)
(
t
simple-string
&rest
t
))
`
(
if
(
position
item
sequence
,@
(
when
from-end
`
(
:from-end
from-end
))
:test
test
:start
start
:end
end
)
item
nil
))
(
let
((
index
(
gensym
)))
`
(
let
((
,
index
(
position
item
sequence
,@
(
when
from-end
`
(
:from-end
from-end
))
:test
test
:start
start
:end
end
)))
(
if
,
index
(
elt
sequence
,
index
)
nil
))))
;;;; Utilities:
...
...
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