import { fn } from "https://deno.land/x/ddc_vim@v3.8.0/deps.ts";
const { reverse } = fn;
Reverse the order of items in {object} in-place.
{object} can be a List
or a Blob
.
Returns {object}.
Returns zero if {object} is not a List or a Blob.
If you want an object to remain unmodified make a copy first:
:let revlist = reverse(copy(mylist))
Can also be used as a method
:
mylist->reverse()
Parameters
denops: Denops