mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 00:46:07 +00:00
move to test folder and fix import bug in shell
This commit is contained in:
19
tests/example.ar
Normal file
19
tests/example.ar
Normal file
@@ -0,0 +1,19 @@
|
||||
let getInitials(name) = do
|
||||
name = name.upper()
|
||||
namesplit = name.split(" ")
|
||||
i = 0
|
||||
while (i < namesplit.length) do
|
||||
namesplit[i] = namesplit[i][0]
|
||||
i = i + 1
|
||||
return namesplit.join("")
|
||||
|
||||
name = "william bell"
|
||||
term.log(getInitials(name))
|
||||
term.log(name)
|
||||
|
||||
let addLastName(name) = do
|
||||
name.append(" Bell")
|
||||
|
||||
name = "William"
|
||||
addLastName(name)
|
||||
term.log(name)
|
||||
Reference in New Issue
Block a user