Rev 11292 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
32 | reyssat | 1 | !! +exec+ +var+ +string+ |
11210 | bpr | 2 | tit:embraced |
3 | type:$type_both |
||
11292 | bpr | 4 | syntax:!embraced ``opword string'' |
5 | mean:executes an operation ``opword'' in each substring of ``string'' enclosed in a pair \ |
||
11210 | bpr | 6 | of curly braces.\ |
7 | <p>\ |
||
11292 | bpr | 8 | The curly braces in ``string'' can be nested, but the execution runs from outmost pair \ |
11210 | bpr | 9 | to innermost pair.\ |
10 | </p><p>\ |
||
11292 | bpr | 11 | Available ``opword'':\ |
11210 | bpr | 12 | </p><ul>\ |
11292 | bpr | 13 | <li>``randitem''. Random item in every embraced text.</li>\ |
14664 | bpr | 14 | <li>``randrow''. Random row in every embraced text.</li>\ |
15 | <li>``linkedranditem''. Random item in every embraced text such that\ |
||
16 | for each level of curly braces, the position of the choosen item is the same. </li>\ |
||
11292 | bpr | 17 | <li>``extract''. Extracts the first (outmost) embraced text.</li>\ |
18 | <li>``delete''. Deletes all embraced contents (encluding the curly braces).</li>\ |
||
32 | reyssat | 19 | </ul> |