Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -1,4 +1,4 @@
|
|||
stringvar1$ = "Hello,"
|
||||
stringvar2$ = stringvar1$ + " world!"
|
||||
PRINT "Variable 1 is """ stringvar1$ """"
|
||||
PRINT "Variable 2 is """ stringvar2$ """"
|
||||
S$ = "HELLO"
|
||||
PRINT S$;" LITERAL" :REM OR S$ + " LITERAL"
|
||||
S2$ = S$ + " LITERAL"
|
||||
PRINT S2$
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
10 LET s$="Hello"
|
||||
20 LET s$=s$+" World!"
|
||||
30 PRINT s$
|
||||
stringvar1$ = "Hello,"
|
||||
stringvar2$ = stringvar1$ + " world!"
|
||||
PRINT "Variable 1 is """ stringvar1$ """"
|
||||
PRINT "Variable 2 is """ stringvar2$ """"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
10 LET s$="Hello"
|
||||
20 LET s$=s$+" World!"
|
||||
30 PRINT s$
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
local :s1 "hello"
|
||||
local :s2 concat( s1 ", world" )
|
||||
!print s2
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
s = "hello"
|
||||
println(s + " there!")
|
||||
|
|
@ -1,5 +1,10 @@
|
|||
s = "hello"
|
||||
puts s + " literal"
|
||||
p s + " literal" #=> "hello literal"
|
||||
s1 = s + " literal"
|
||||
puts s1
|
||||
p s1 #=> "hello literal"
|
||||
s1 << " another" # append to s1
|
||||
p s1 #=> "hello literal another"
|
||||
|
||||
s = "hello"
|
||||
p s.concat(" literal") #=> "hello literal"
|
||||
p s #=> "hello literal"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
val s = "hello"
|
||||
val s2 = s + " world"
|
||||
println(s2)
|
||||
val s = "hello" //> s : String = hello
|
||||
val s2 = s + " world" //> s2 : String = hello world
|
||||
val f2 = () => " !" //> f2 : () => String = <function0>
|
||||
|
||||
println(s2 + f2()) //> hello world !
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue