[FMFP] Start summary

This commit is contained in:
2026-02-27 17:11:45 +01:00
parent 18734a18b6
commit 9d72814b56
6 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
-- Declaring a function. Naming using lowerCamelCase
-- Arguments separated by whitespace
myFunc :: Int -> Int -> Int
myFunc x y
| x > 0 = x + y
| x < 0 = -x + y
-- On compile the above function is transformed like this:
-- TODO: Transform the template into correct version
myFuncXCompiled :: Int -> Int
myFuncXCompiled x = x