Skip to content

Commit c93d493

Browse files
committed
Add the helper function without(item, elements) to util.bzl
1 parent 0249a77 commit c93d493

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

util.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ def path_join(*components):
1010

1111
def windows_path(path):
1212
return path.replace("/c/", "C:\\").replace("/", "\\")
13+
14+
def without(item, elements):
15+
c = list(elements)
16+
c.remove(item)
17+
return c

0 commit comments

Comments
 (0)