removing(childAt:)

Creates a new collection by removing the syntax element at the provided index.

SyntaxCollection.swift:198

This declaration is deprecated: Use filter to remove unwanted elements and construct a new collection type from the filtered elements

func removing(childAt index: Int) -> Self

Parameters

index

The index of the element to remove from the collection.

Returns

A new collection with the element at the provided index removed.