Hello World
The simplest Ragul program — assign a string and print it.
Run it:
Output:
What's happening
program-ours-effect(program-nk-hatás) — declares an effect scope namedprogram. The-effect/-hatássuffix marks it as eager: everything inside executes in order, top to bottom.greeting-into "Hello, World!"-it.— assigns the string into the rootgreeting. The compiler infers typeSzöveg(string).greeting-print-doing.— pipesgreetingto the-print(képernyőre) channel and executes it with-doing(-va).
Variation — with concatenation
Output:
The -concat / -összefűz suffix concatenates two strings. The second string is passed inline in the chain: greeting-name-concat-it reads as "greeting, concatenated with name".