Created
February 1, 2023 06:56
-
-
Save anandology/c8ff9836e541da642c1645a3d20abb1f to your computer and use it in GitHub Desktop.
Revisions
-
anandology revised this gist
Feb 1, 2023 . No changes.There are no files selected for viewing
-
anandology created this gist
Feb 1, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ import Square (square); module body Main is function main(): ExitCode is let n: Int32 := 5; let n2:Int32 := square(n); printLn(n2); return ExitSuccess(); end; end module body. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ module Square is function square(n: Int32): Int32; end module. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ module body Square is function square(n: Int32): Int32 is return n*n; end; end module body.