Search code examples
ibm-doors

How can I remove all elements from a DXL skip list


I want to clear all elements within a Skip list, like this:

Module mod = current()
Skip skip = create()

put(skip, 1, "test")
put(skip, 2, mod)

clearSkip(skip) // Removes all elements

Solution

  • You can use the setempty(Skip) function, although this specific overload is undocumented as far as I know.