Request module
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
let counter = 0
|
||||
|
||||
while compare $counter <= 1000 {
|
||||
while compare $counter <= 10000 {
|
||||
println $counter
|
||||
counter = (math 1 + $counter)
|
||||
}
|
||||
|
||||
33
tests/test.kyn
Normal file
33
tests/test.kyn
Normal file
@@ -0,0 +1,33 @@
|
||||
println "thing"
|
||||
|
||||
if compare 5 == 10 {
|
||||
println "uh oh its broken"
|
||||
} else {
|
||||
println "its working"
|
||||
}
|
||||
|
||||
struct Dingus {
|
||||
name = <String>
|
||||
age = <Int>
|
||||
fun init name age {
|
||||
self name = name
|
||||
self age = age
|
||||
}
|
||||
|
||||
fun tostring {
|
||||
return (concat name ", " age)
|
||||
}
|
||||
}
|
||||
|
||||
let myDingus = (Dingus "dingus" 23)
|
||||
|
||||
fun myFn param1 param2 andSoOn {
|
||||
println param1
|
||||
return param2
|
||||
}
|
||||
|
||||
println (myFn 123 "hi" 3.14)
|
||||
|
||||
let favNumbers = [7, 14, 21]
|
||||
|
||||
println (file read "README.md")
|
||||
Reference in New Issue
Block a user