Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home/virtwww/w_code-sampc3e_56a7b680/http/includes/common.inc).

Generic methods in Swift

func swap<T>(inout a: Tinout _ b: T) {
    let tmp = a
    a = b
    b = tmp
}

var n1 = 5
var n2 = 7
swap(&n1, &n2)
//n1 is 7 and n2 is 5

var s1 = "cat"
var s2 = "dog"
swap(&s1, &s2)
//s1 is "dog" and s2 is "cat"