Polymorphism. Introduction. Compare these function types The ML function is more flexible, since it can be applied to any pair of the same (equality-testable) type. int f(char a, char b) { return a==b; }. C:. - fun f(a, b) = (a = b); val f = fn : ''a * ''a -> bool. ML:. Polymorphism.

Related searches for Polymorphism

Download Presentation
## PowerPoint Slideshow about 'Polymorphism' - salvador

**An Image/Link below is provided (as is) to download presentation**

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -