@@ -379,8 +379,8 @@ def apply(self, expr, evaluation):
379379class All (Predefined ):
380380 """
381381 <dl>
382- <dt>'All'
383- <dd>is a possible value for 'Span' and 'Quiet' .
382+ <dt>'All'
383+ <dd>is a possible option value for 'Span', 'Quiet', 'Part' and related functions. 'All' specifies all parts at a particular level .
384384 </dl>
385385 """
386386
@@ -991,8 +991,8 @@ def convert_seq(seq):
991991class Part (Builtin ):
992992 """
993993 <dl>
994- <dt>'Part[$expr$, $i$]'
995- <dd>returns part $i$ of $expr$.
994+ <dt>'Part[$expr$, $i$]'
995+ <dd>returns part $i$ of $expr$.
996996 </dl>
997997
998998 Extract an element from a list:
@@ -1030,11 +1030,17 @@ class Part(Builtin):
10301030 >> B = {{a, b, c}, {d, e, f}, {g, h, i}};
10311031 >> B[[;;, 2]]
10321032 = {b, e, h}
1033+
10331034 Extract a submatrix of 1st and 3rd row and the two last columns:
10341035 >> B = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
1036+
10351037 >> B[[{1, 3}, -2;;-1]]
10361038 = {{2, 3}, {8, 9}}
10371039
1040+ The 3d column of a matrix:
1041+ >> {{a, b, c}, {d, e, f}, {g, h, i}}[[All, 3]]
1042+ = {c, f, i}
1043+
10381044 Further examples:
10391045 >> (a+b+c+d)[[-1;;-2]]
10401046 = 0
0 commit comments