TreeNode

@dynamicMemberLookup
public struct TreeNode<Value>
extension TreeNode: CustomDebugStringConvertible
extension TreeNode: MutableCollection, BidirectionalCollection
extension TreeNode: Equatable where Value: Equatable
extension TreeNode: Hashable where Value: Hashable
extension TreeNode: CustomStringConvertible where Value: CustomStringConvertible

Undocumented

compactMap

  • Undocumented

    Declaration

    Swift

    public func compactMapValues<NewValue>(_ transform: (Value) -> NewValue?) -> TreeNode<NewValue>?

filter

  • Undocumented

    Declaration

    Swift

    public func filterValues(_ isIncluded: (Value) -> Bool) -> TreeNode<Value>?

Move

  • Undocumented

    Declaration

    Swift

    public mutating func removeAllChildren(where shouldBeRemoved: (TreeNode<Value>) -> Bool)

Available where Value: CustomStringConvertible

  • Declaration

    Swift

    public var description: String { get }