Skip to content

Instantly share code, notes, and snippets.

/**
* Determine le type de base d'un pointeur
* @{
*/
template <typename T>
struct BaseType
{
typedef T base_type;
};
@GabrielL
GabrielL / gist:51240
Created January 23, 2009 22:38
Preuve de code simple
length :: [a] -> Int
length [] = 0
length (h:t) = 1 + length t
Prouver que la propriété P :
length [ l1 ++ l2 ] = length l1 + length l2
----------------
Montrons P([], [])