File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ \subsection{一般列}
71
71
\funcdesc {map}{result-type function seq \& rest more-seqs}{
72
72
{\em function}は、{\em seq}と{\em more-seqs}のそれぞれのN番目($ N=0 ,1 ,\cdots $ )の要素
73
73
からなるリストに
74
- 対して適用され、その結果は{\em result-type}の型の列に蓄積される。}
74
+ 対して適用され、その結果は{\em result-type}の型の列に蓄積される。例えば、{ \tt (map float-vector \# '(lambda (x) (* x x)) (float-vector 1 2 3))}のように書く。 }
75
75
76
76
\funcdesc {fill}{sequence item \& key (start 0) (end (length sequence))}{
77
77
{\em sequence}の{\em start}番目から({\em end}$ -$ 1)番目まで、{\em item}で満たす。}
@@ -405,7 +405,7 @@ \subsection{リスト}
405
405
406
406
\funcdesc {mapcar}{func \& rest arg-list}{
407
407
{\em arg-list}のそれぞれの要素に{\em func}を{\bf map}し、
408
- その全ての結果のリストを作る。
408
+ その全ての結果のリストを作る。例えば、{ \tt (mapcar \# '(lambda (x) (* x x)) '(1 2 3))}のように書く。
409
409
{\bf mapcar}を使う前に、{\bf dolist}を試すこと。}
410
410
411
411
\funcdesc {mapcan}{func arg-list \& rest more-arg-lists}{
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ \subsection{General Sequences}
72
72
\funcdesc {map}{result-type function seq \& rest more-seqs}{
73
73
{\em function} is applied to a list of arguments taken from {\em seq}
74
74
and {\em more-seqs} orderly, and the result is accumulated in a sequence
75
- of type {\em result-type}.}
75
+ of type {\em result-type}. For example, you can write as follows: { \tt (map float-vector \# '(lambda (x) (* x x)) (float-vector 1 2 3))} }
76
76
77
77
\funcdesc {fill}{sequence item \& key (start 0) (end (length sequence))}{
78
78
fills {\em item} from {\em start}th through ({\em end}-1)th in {\em sequence}.}
@@ -402,7 +402,7 @@ \subsection{Lists}
402
402
403
403
\funcdesc {mapcar}{func \& rest arg-list}{
404
404
maps {\em func} to each element of {\em arg-list},
405
- and makes a list from all the results.
405
+ and makes a list from all the results. For example, you can write as follows: { \tt (mapcar \# '(lambda (x) (* x x)) '(1 2 3))}.
406
406
Before using {\bf mapcar}, try {\bf dolist}.}
407
407
408
408
\funcdesc {mapcan}{func arg-list \& rest more-arg-lists}{
You can’t perform that action at this time.
0 commit comments