I am using Generics to add different types like Int, Double, Float, etc. I used the code below but I\'m getting error \"Binary operator \'+\' cannot be applied to two \'T\'
For those who wish to use comparison such as < , > etc, simply tell Swift that your generic type adopt to comperable protocol like so: -
<
>
func genericComparison(left: LinkedList, right: LinkedList) -> LinkedList