Skip to content

Commit

Permalink
add warning in copy-tree manual
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Dec 15, 2021
1 parent ee3389e commit e602258
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion doc/jlatex/jsequences.tex
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,11 @@ \subsection{リスト}
入れこリストである{\em tree}のコピーを返す。
しかし、環状参照はできない。環状リストは、
{\bf copy-object}でコピーできる。
実際に、{\bf copy-tree}は{\tt (subst t t tree)}と簡単に記述される。}
実際に、{\bf copy-tree}は{\tt (subst t t tree)}と簡単に記述される。
なお{\bf copy-tree}は{\em list}しかコピーできず、
{\em integer-vector, float-vector}などは{\bf copy-seq}を使用しないとコピーできず、
{\em interger-vector, float-vector}などを含む{\em list}は{\bf copy-object}を
使用しないとディープコピーできない。}

\funcdesc{mapc}{func arg-list \&rest more-arg-lists}{
{\em arg-list}や{\em more-arg-lists}それぞれのN番目($N=0,1,\cdots$)の要素からなるリストに
Expand Down
5 changes: 4 additions & 1 deletion doc/latex/sequences.tex
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,10 @@ \subsection{Lists}
returns the copy of {\em tree} which may be a nested list
but cannot have circular reference. Circular lists can be copied by
{\bf copy-object}.
Actually, {\bf copy-tree} is simply coded as {\tt (subst t t tree)}.}
Actually, {\bf copy-tree} is simply coded as {\tt (subst t t tree)}.
Be careful that {\bf copy-tree} only return the copy of {\em list}.
and you need to use {\bf copy-seq} to copy {\em integer-vector, float-vector}, etc.,
or {\bf copy-object} to deep-copy {\em list} with {\em integer-vector, float-vector} etc.}

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

0 comments on commit e602258

Please sign in to comment.