| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This example demonstrates how to split code into logical modules across multiple files and import them using the use keyword in TechScript.
do square(x)
send x * x
end
do cube(x)
send x * x * x
end
use math_utils
val = 5
say $"Value: {val}"
say $"Square: {math_utils.square(val)}"
say $"Cube: {math_utils.cube(val)}"
tech run main.txsValue: 5 Square: 25 Cube: 125
| Back | FazBrowse Home | New Git URL |