comparison runtime/doc/usr_41.txt @ 23604:1816ea68c022 v8.2.2344

patch 8.2.2344: using inclusive index for slice is not always desired Commit: https://github.com/vim/vim/commit/6601b62943a19d4f8818c3638440663d67a17b6a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 13 21:47:15 2021 +0100 patch 8.2.2344: using inclusive index for slice is not always desired Problem: Using inclusive index for slice is not always desired. Solution: Add the slice() method, which has an exclusive index. (closes #7408)
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 Jan 2021 22:00:04 +0100
parents 7b3317e959e3
children 96206643bd9f
comparison
equal deleted inserted replaced
23603:483d395694b0 23604:1816ea68c022
617 setcellwidths() set character cell width overrides 617 setcellwidths() set character cell width overrides
618 substitute() substitute a pattern match with a string 618 substitute() substitute a pattern match with a string
619 submatch() get a specific match in ":s" and substitute() 619 submatch() get a specific match in ":s" and substitute()
620 strpart() get part of a string using byte index 620 strpart() get part of a string using byte index
621 strcharpart() get part of a string using char index 621 strcharpart() get part of a string using char index
622 slice() take a slice of a string, using char index in
623 Vim9 script
622 strgetchar() get character from a string using char index 624 strgetchar() get character from a string using char index
623 expand() expand special keywords 625 expand() expand special keywords
624 expandcmd() expand a command like done for `:edit` 626 expandcmd() expand a command like done for `:edit`
625 iconv() convert text from one encoding to another 627 iconv() convert text from one encoding to another
626 byteidx() byte index of a character in a string 628 byteidx() byte index of a character in a string
646 deepcopy() make a full copy of a List 648 deepcopy() make a full copy of a List
647 filter() remove selected items from a List 649 filter() remove selected items from a List
648 map() change each List item 650 map() change each List item
649 mapnew() make a new List with changed items 651 mapnew() make a new List with changed items
650 reduce() reduce a List to a value 652 reduce() reduce a List to a value
653 slice() take a slice of a List
651 sort() sort a List 654 sort() sort a List
652 reverse() reverse the order of a List 655 reverse() reverse the order of a List
653 uniq() remove copies of repeated adjacent items 656 uniq() remove copies of repeated adjacent items
654 split() split a String into a List 657 split() split a String into a List
655 join() join List items into a String 658 join() join List items into a String