Skip to content

Latest commit

History

History
56 lines (38 loc) 路 1000 Bytes

File metadata and controls

56 lines (38 loc) 路 1000 Bytes

EXTENSION

Array

public extension Array where Element: Equatable

Properties

removingRepeatElements

var removingRepeatElements: Array<Element>

Returns an array where repeating elements of the receiver got removed.

body

public var body: some View

Add View conformance to Array where element is View

Methods

remove(_:)

mutating func remove(_ element: Element) -> Element?

Removes the given element in the array.

  • Parameter element: The element to be removed.
  • Returns: The element got removed, or nil if the element doesn't exist.

Parameters

Name Description
element The element to be removed.

init(_:)

init<T: LosslessStringConvertible>(_ dictionary: [String: T])

Initialize URLQueryItem from dictionary

  • Parameter dictionary: url parameters

Parameters

Name Description
dictionary url parameters