Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Déclaration d'un tuple
createTuple :: Int -> String -> (Int, String)
createTuple intValue stringValue = (0, "")
Retourner le premier élément
firstElement :: (Int, String) -> Int
firstElement tuple = 0
Retourner le second élément
secondElement :: (Int, String) -> String
secondElement tuple = ""
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content