Table of Contents

Examen PP 2022

Reguli de desfasurare

Urmatoarele sunt reguli OBLIGATORII pentru examen.

Veti descarca un schelet de cod ce va contine enuntul exercitiilor precum si signaturile functiilor ce trebuie implementate. Exemplu:

module Examen where
 
tokenId :: String
tokenId = undefined
 
-- daca x = 0, f intoarce 1, altfel, intoarce 0
f :: Int -> Int
f = undefined
 
-- verifica daca doua numere produc suma 2
-- Exemplu: g 1 2 = False, g 1 1 = True
g :: Int -> Int -> Int
g = undefined

Sfaturi utile pentru examen