MCPcopy Create free account
hub / github.com/Arrowyz01/csv2logseq_block / del_adjacent

Function del_adjacent

logseq_block2csv.py:8–11  ·  view source on GitHub ↗
(alist)

Source from the content-addressed store, hash-verified

6
7# delete adjacent duplicate
8def del_adjacent(alist):
9 for i in range(len(alist) - 1, 0, -1):
10 if alist[i] == alist[i-1]:
11 del alist[i]
12
13# syntax
14symb1 = '-'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected