Thông tin

Hạn chót Không có hạn chót
Giới hạn nộp bài Không có giới hạn

Đăng nhập

[3.7] Positivise [Suppl.]

Définissez les fonctions répondant aux spécifications suivantes (sans utiliser abs) :

\begin{align*} & \text{Nom (explicite simple)} & & \texttt{positivise ls} \\ & \text{Nom (explicite terminale)} & & \texttt{positiviseTerm ls} \\ & \text{Nom (implicite)} & & \texttt{positiviseImpl ls} \\ & \text{Type} & & \texttt{(Ord a, Num a) => [a] -> [a]} \\ & \text{Conditions} & & - \\ & \text{Résultat} & & \text{la liste obtenue en remplaçant chaque élément négatif de } \texttt{ls} \text{ par son opposé} \end{align*}
Équivalent Python (Cliquez ici)

Le code