🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
32
node_modules/shiki/samples/ballerina.sample
generated
vendored
Normal file
32
node_modules/shiki/samples/ballerina.sample
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import ballerina/io;
|
||||
|
||||
// This function definition has two parameters of type `int`.
|
||||
// `returns` clause specifies type of return value.
|
||||
function add(int x, int y) returns int {
|
||||
|
||||
int sum = x + y;
|
||||
// `return` statement returns a value.
|
||||
return sum;
|
||||
|
||||
}
|
||||
|
||||
public function main() {
|
||||
io:println(add(5, 11));
|
||||
}
|
||||
import ballerina/io;
|
||||
|
||||
// This function definition has two parameters of type `int`.
|
||||
// `returns` clause specifies type of return value.
|
||||
function add(int x, int y) returns int {
|
||||
|
||||
int sum = x + y;
|
||||
// `return` statement returns a value.
|
||||
return sum;
|
||||
|
||||
}
|
||||
|
||||
public function main() {
|
||||
io:println(add(5, 11));
|
||||
}
|
||||
|
||||
// From https://ballerina.io/learn/by-example/functions
|
||||
Loading…
Add table
Add a link
Reference in a new issue