Difference between revisions of "Array.spliteach()"
Jump to navigation
Jump to search
(Created page with "Spliteach() finds the removes the chaacter/text from the array elements and removes the same. ==Examples== 1. MONTHS .chunks(3) .spliteach(/m/) The above example removes...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | Spliteach() finds the removes the | + | *[[ Z3 | << Z3 Home ]] |
+ | *[[ Z%5E3_Language_Documentation | Z3 Language Documentation]] | ||
+ | *[[ Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member Functions]] | ||
+ | |||
+ | |||
+ | Spliteach() finds the removes the character/text from the array elements and removes the same. | ||
==Examples== | ==Examples== | ||
Line 16: | Line 21: | ||
The above example removes characters 'm' and 'M' both, from the months March, May, September, November and December. | The above example removes characters 'm' and 'M' both, from the months March, May, September, November and December. | ||
+ | |||
+ | |||
+ | ==See Also == | ||
+ | |||
+ | [[Array.determinant() |determinant]] | ||
+ | |||
+ | [[Array.inverse() |inverse]] |
Latest revision as of 03:22, 8 May 2020
Spliteach() finds the removes the character/text from the array elements and removes the same.
Examples
1.
MONTHS .chunks(3) .spliteach(/m/)
The above example removes character 'm' from the months September, November and December.
2. Ignoring case sensitivity of the characters
MONTHS .chunks(3) .spliteach(/m/i)
The above example removes characters 'm' and 'M' both, from the months March, May, September, November and December.