This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sets": [ | |
{ | |
"title": "A set with a default 2", | |
"items": [ | |
{ | |
"title": "Example One", | |
"gist": "9b4bafe29a28103818c9" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sets": [ | |
{ | |
"title": "A set with a default", | |
"items": [ | |
{ | |
"title": "Example One", | |
"gist": "9b4bafe29a28103818c9" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sets": [ | |
{ | |
"title": "A set of examples", | |
"items": [ | |
{ | |
"title": "Example One", | |
"gist": "9b4bafe29a28103818c9" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//$webrun_wrapped | |
shared void run() { | |
dynamic { | |
openCanvasWindow(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shared void run(){ | |
// The classic "hello world" in Ceylon | |
print("Hello world!"); | |
// This prints the same text: | |
String str = "world"; | |
print("Hello ``str``!"); | |
// Click "Run" above to run the program. | |
// It is converted to JavaScript and runs directly in your browser! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shared void run() { | |
Integer unused; | |
String x = nothing; | |
hello(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//$webrun_wrapped | |
shared void run() { | |
// An interop demo | |
dynamic { | |
dynamic x = foobar(); | |
dynamic y = \iObject.getOwnPropertyNames(x); | |
print("{"); | |
for (i in y) { | |
print(" " + i + ": '" + x[i] + "',"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//$webrun_wrapped | |
shared void run() { | |
print(runtime.version); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//$webrun_wrapped | |
shared void run() { | |
// The classic "hello world" in Ceylon | |
print("Hello world!"); | |
// This prints the same text: | |
String str = "world"; | |
print("Hello ``str``!"); | |
// Click "Run" below to run the program. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//$webrun_wrapped | |
shared void run() { | |
// The classic "hello world" in Ceylon | |
print("Hello world!"); | |
// This prints the same text: | |
String str = "world"; | |
print("Hello ``str``!"); | |
// Click "Run" below to run the program. |