Skip to main content
Module

x/ddc_vim/deps.ts>fn.repeat

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.repeat
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { repeat } = fn;

Repeat {expr} {count} times and return the concatenated result. Example: :let separator = repeat('-', 80) When {count} is zero or negative the result is empty. When {expr} is a |List| the result is {expr} concatenated {count} times. Example: :let longlist = repeat(['a', 'b'], 3) Results in ['a', 'b', 'a', 'b', 'a', 'b']. Can also be used as a |method|: mylist->repeat(count)

Parameters

denops: Denops
expr: unknown
count: unknown

Returns

Promise<unknown>