import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { count } = fn;
Return the number of times an item with value {expr} appears
in String
, List
or Dictionary
{comp}.
If {start} is given then start with the item with this index.
{start} can only be used with a List
.
When {ic} is given and it's TRUE
then case is ignored.
When {comp} is a string then the number of not overlapping occurrences of {expr} is returned. Zero is returned when {expr} is an empty string.
Can also be used as a method
:
mylist->count(val)