You are not logged in.

#1 2010-01-17 02:05:26

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

type inference exercises

hi all, in 20 days i have to attend to my functional languages exham (ocaml) and i was wondering if any of you has some exercises about type inference, like "this is the signature... tell me the type..." so i can improve my skill (our teacher gave us some, but just 10 and already did them all...)
nothing else big_smile

thanks in advance

Offline

#2 2010-01-31 06:59:17

tousborne
Member
Registered: 2007-12-01
Posts: 5

Re: type inference exercises

From a course I took last semester, the page linked to below has some good OCaml practice questions (type inference from signatures, signatures from given types, write code snippet that has a given type, etc).  Look at the documents further down on the page, specifically under the headings of "Practice Problems", "Quizzes", and "Tests".  I don't remember which were the best, but I do remember doing all the practice problems on that page over the course of the semester and all them being very helpful.  Additionally, there are many more then just 10 problems.  OCaml is a very interesting and fun language, good luck and hope this helps!

http://www.cs.umd.edu/class/fall2009/cm … dule.shtml

Last edited by tousborne (2010-01-31 07:01:28)

Offline

#3 2010-01-31 22:56:48

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: type inference exercises

thanks mate, this is what i was looking for big_smile

Offline

Board footer

Powered by FluxBB