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
fc06063c
Commit
fc06063c
authored
Jul 26, 2012
by
halatmit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error message for insert list item
parent
4cf576e2
Changes
1
Hide 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 @
fc06063c
...
...
@@ -1787,14 +1787,14 @@ list, use the make-yail-list constructor with no arguments.
(
format
#f
"Insert list item: Attempt to insert item ~A into the list ~A. The maximum valid item number is ~A."
index2
(
get-display-representation
yail-list
)
len+1
)
(
get-display-representation
yail-list
))
"List index too large"
))
(
let
((
contents
(
yail-list-contents
yail-list
)))
(
if
(
=
index2
1
)
(
set-yail-list-contents!
yail-list
(
cons
item
contents
))
(
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
;; 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