What features are you thinking of in those languages? I don't know Swift but I can't think of anything comparable in OCaml.
I merely know from experience that they have a pretty good type system, but not much more. So I asked :-)
Answers have been enlightening