Skip to content

Commit 552b830

Browse files
committed
add warning in copy-tree manual
1 parent ee3389e commit 552b830

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/jlatex/jsequences.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,9 @@ \subsection{リスト}
396396
入れこリストである{\em tree}のコピーを返す。
397397
しかし、環状参照はできない。環状リストは、
398398
{\bf copy-object}でコピーできる。
399-
実際に、{\bf copy-tree}は{\tt (subst t t tree)}と簡単に記述される。}
399+
実際に、{\bf copy-tree}は{\tt (subst t t tree)}と簡単に記述される。
400+
なお{\bf copy-tree}は{\em list}しかコピーできず、
401+
{\em float-vector}などは{\bf copy-seq}を使用しないとコピーできない。}
400402

401403
\funcdesc{mapc}{func arg-list \&rest more-arg-lists}{
402404
{\em arg-list}や{\em more-arg-lists}それぞれのN番目($N=0,1,\cdots$)の要素からなるリストに

doc/latex/sequences.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,9 @@ \subsection{Lists}
393393
returns the copy of {\em tree} which may be a nested list
394394
but cannot have circular reference. Circular lists can be copied by
395395
{\bf copy-object}.
396-
Actually, {\bf copy-tree} is simply coded as {\tt (subst t t tree)}.}
396+
Actually, {\bf copy-tree} is simply coded as {\tt (subst t t tree)}.
397+
Be careful that {\bf copy-tree} only return the copy of {\em list},
398+
and you need to use {\bf copy-seq} to copy {\em float-vector} and so on.}
397399

398400
\funcdesc{mapc}{func arg-list \&rest more-arg-lists}{
399401
applies {\em func} to a list of N-th elements in {\em arg-list} and each of

0 commit comments

Comments
 (0)