It seems I can't do this:

let r = Int(a > b)

but I can do it with a literal:

let r = Int(true)

I'd like to do this to implement signum without branching, but perhaps that's 
not possible.

-- 
Rick Mann
rm...@latencyzero.com


_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to