Mercurial > vim
comparison runtime/doc/eval.txt @ 4159:8b86b69546a9
Update runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 20 Feb 2013 21:26:00 +0100 |
parents | cb185366f5c8 |
children | fa4089df54bc |
comparison
equal
deleted
inserted
replaced
4158:031daf1e5ab2 | 4159:8b86b69546a9 |
---|---|
501 :call filter(dict, 'v:val =~ "x"') | 501 :call filter(dict, 'v:val =~ "x"') |
502 This removes all entries from "dict" with a value not matching 'x'. | 502 This removes all entries from "dict" with a value not matching 'x'. |
503 | 503 |
504 | 504 |
505 Dictionary function ~ | 505 Dictionary function ~ |
506 *Dictionary-function* *self* *E725* | 506 *Dictionary-function* *self* *E725* *E862* |
507 When a function is defined with the "dict" attribute it can be used in a | 507 When a function is defined with the "dict" attribute it can be used in a |
508 special way with a dictionary. Example: > | 508 special way with a dictionary. Example: > |
509 :function Mylen() dict | 509 :function Mylen() dict |
510 : return len(self.data) | 510 : return len(self.data) |
511 :endfunction | 511 :endfunction |