This commit is contained in:
Reimar 2024-12-05 16:40:10 +01:00
parent 67fd4e2085
commit 88321a2614
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268
2 changed files with 28 additions and 28 deletions

View File

@ -1,6 +1,6 @@
fun sortAsc (l: int list) : int list = ListMergeSort.sort (op >) l
fun sortAsc (l : int list) : int list = ListMergeSort.sort (op >) l
fun sum (l: int list) : int = foldl (op +) 0 l
fun sum (l : int list) : int = foldl (op +) 0 l
fun substrToInt (substr: substring) : int = valOf (Int.fromString (Substring.string substr))