Debian Codegraph @

dist/nimble/tests/filepathrequires/dep3file/src/dep3file.nim

raw
1 # This is just an example to get you started. A typical library package
2 # exports the main API in this file. Note that you cannot rename this file
3 # but you can remove it if you wish.
4
5 proc add3*(x, y: int): int =
6 ## Adds two numbers together.
7 return x + y
8
9 when isMainModule:
10 import depfile
11 let addResult = add(3, 4)
12 let substractResult = subtract(10, 5)
13 let multiplyResult = multiply(2, 3)
14 echo("Addition Result: ", addResult)
15 echo("Subtraction Result: ", substractResult)
16 echo("Multiplication Result: ", multiplyResult)