-
Notifications
You must be signed in to change notification settings - Fork 18
Home
YenLin Wu edited this page Oct 15, 2020
·
10 revisions
- 陣列反序 Reverse an Array
arr_Variable =
arr_Variable.Reverse( ).ToArray
- 排除陣列中的第一個元素 Remove first item of Array
arr_Variable =
arr_Variable.Skip(1).ToArray( )
- 排除陣列中的前 k 個元素 Remove first k items of Array
arr_Variable =
arr_Variable.Skip(k).ToArray( )
- 排除陣列中的特定元素 Delete an element from an Array
(1) arr_Variable =
arr_Variable.Remove( "element" )
(2) arr_Variable =arr_Variable.Where( Function(s) s <> "element" ).ToArray