Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
cf5332f6
Commit
cf5332f6
authored
Jul 26, 2012
by
Andrew F. McKinney
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72 from halatmit/fix-error-message
fix error message for insert list item
parents
4cf576e2
fc06063c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
appinventor/buildserver/src/com/google/appinventor/buildserver/resources/runtime.scm
.../com/google/appinventor/buildserver/resources/runtime.scm
+2
-2
No files found.
appinventor/buildserver/src/com/google/appinventor/buildserver/resources/runtime.scm
View file @
cf5332f6
...
@@ -1787,14 +1787,14 @@ list, use the make-yail-list constructor with no arguments.
...
@@ -1787,14 +1787,14 @@ list, use the make-yail-list constructor with no arguments.
(
format
#f
(
format
#f
"Insert list item: Attempt to insert item ~A into the list ~A. The maximum valid item number is ~A."
"Insert list item: Attempt to insert item ~A into the list ~A. The maximum valid item number is ~A."
index2
index2
(
get-display-representation
yail-list
)
len+1
)
len+1
)
(
get-display-representation
yail-list
))
"List index too large"
))
"List index too large"
))
(
let
((
contents
(
yail-list-contents
yail-list
)))
(
let
((
contents
(
yail-list-contents
yail-list
)))
(
if
(
=
index2
1
)
(
if
(
=
index2
1
)
(
set-yail-list-contents!
yail-list
(
cons
item
contents
))
(
set-yail-list-contents!
yail-list
(
cons
item
contents
))
(
let
((
at-item
(
list-tail
contents
(
-
index2
2
))))
(
let
((
at-item
(
list-tail
contents
(
-
index2
2
))))
(
set-cdr!
at-item
(
cons
item
(
cdr
at-item
))))))))
(
set-cdr!
at-item
(
cons
item
(
cdr
at-item
))))))))
)
;; Extends list A by appending the elements of list B to it
;; Extends list A by appending the elements of list B to it
;; Modifies list A
;; Modifies list A
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment