Skip to main content
Module

x/dpp_vim/deps.ts>fn.count

Dark powered plugin manager for Vim/neovim
Latest
function fn.count
import { fn } from "https://deno.land/x/dpp_vim@v0.2.0/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)

Parameters

denops: Denops
comp: unknown
expr: unknown
optional
ic: unknown
optional
start: unknown

Returns

Promise<number>