Add ternary implementation
Add ternary implementation

When xs is not empty, we don't need the explicit context.
See @dialelo's comment on funcool/cats#55

alesguzik/cats,OlegTheCat/cats,funcool/cats,tcsavage/cats,yurrriq/cats,mccraigmccraig/cats