RestfulPropertyKit Documentation Beta

Operator ++

infix operator ++: MultiplicationPrecedence

The query parameter concatenation operator.

Implementations

Query ++ [ParamKey: ParamValue] where Query: RestQuery, Query.QueryParent == Parent, Query.QueryValue == Value, ParamKey: CustomStringConvertible, ParamKey: Hashable, ParamValue: CustomStringConvertible, ParamValue: Hashable

public func ++ <Query, Parent, Value, ParamKey, ParamValue>(lhs: Query, rhs: [ParamKey: ParamValue]) -> Query where Query: RestQuery, Query.QueryParent == Parent, Query.QueryValue == Value, ParamKey: CustomStringConvertible, ParamKey: Hashable, ParamValue: CustomStringConvertible, ParamValue: Hashable 

The query parameter concatenation operator.

Creates a copy of the on the left hand side provided query with an additional set of query parameters.

Usage:

let newQuery = $someQuery ++ ["someKey": someValue]

Reference

Custom Operators

Parameters

lhs Query

The query instance the new copy will be based on.

rhs [Param​Key:​ Param​Value]

The additional set of query parameters.

Returns

The query copy with additional query parameters.