curl http://localhost:9090/api/greeting/John Call external services using built-in clients.
int[] highSalaries = from var e in employees where e.salary > 5500 select e.salary; Generate Docker and Kubernetes artifacts using bal build .
public function main() future<int> f1 = start task1(); future<string> f2 = start task2();
type Employee record string name; int salary; ; Employee[] employees = [ name: "Alice", salary: 5000 , name: "Bob", salary: 6000 ];
worker w1 returns int return 10;
Ballerina has powerful query expressions and type casts .
worker w2 returns int return 20;