Compute()->cosh()
-count({comp}, {expr} [, {ic} [, {start}]]) *count()*
+count({comp}, {expr} [, {ic} [, {start}]]) *count()* *E706*
Return the number of times an item with value {expr} appears
in |String|, |List| or |Dictionary| {comp}.
Can also be used as a |method|: >
mylist->insert(item)
-
-instanceof({object}, {class}) *instanceof()*
- The result is a Number, which is |TRUE| when the {object} argument is a
- direct or indirect instance of a |Class| specified by {class}.
- When {class} is a |List| the function returns |TRUE| when {object} is an
- instance of any of the specified classes.
+<
+ *instanceof()* *E614* *E616* *E693*
+instanceof({object}, {class})
+ The result is a Number, which is |TRUE| when the {object}
+ argument is a direct or indirect instance of a |Class|
+ specified by {class}.
+ When {class} is a |List| the function returns |TRUE| when
+ {object} is an instance of any of the specified classes.
Example: >
instanceof(animal, [Dog, Cat])
using a {n$} positional argument specifier. See |printf-$|.
+ *E1520*
The conversion specifiers and their meanings are:
*printf-d* *printf-b* *printf-B* *printf-o*
< You may want to make a copy of a list to avoid this.
See |deepcopy()|.
+ *E1391* *E1392*
+ Locking and unlocking object and class variables is
+ currently NOT supported.
+
:unlo[ckvar][!] [depth] {name} ... *:unlockvar* *:unlo* *E1246*
Unlock the internal variable {name}. Does the
E1389 vim9class.txt /*E1389*
E139 message.txt /*E139*
E1390 vim9class.txt /*E1390*
+E1391 eval.txt /*E1391*
+E1392 eval.txt /*E1392*
E140 message.txt /*E140*
E141 message.txt /*E141*
E142 message.txt /*E142*
E1509 editing.txt /*E1509*
E151 helphelp.txt /*E151*
E152 helphelp.txt /*E152*
+E1520 builtin.txt /*E1520*
E153 helphelp.txt /*E153*
E154 helphelp.txt /*E154*
E155 sign.txt /*E155*
E611 eval.txt /*E611*
E612 sign.txt /*E612*
E613 print.txt /*E613*
+E614 builtin.txt /*E614*
+E616 builtin.txt /*E616*
E617 options.txt /*E617*
E618 print.txt /*E618*
E619 print.txt /*E619*
E690 eval.txt /*E690*
E691 eval.txt /*E691*
E692 eval.txt /*E692*
+E693 builtin.txt /*E693*
E694 eval.txt /*E694*
E695 eval.txt /*E695*
E696 eval.txt /*E696*
E703 eval.txt /*E703*
E704 eval.txt /*E704*
E705 eval.txt /*E705*
+E706 builtin.txt /*E706*
E707 eval.txt /*E707*
E708 eval.txt /*E708*
E709 eval.txt /*E709*