CHAPTER 1 OF 3
Two pieces. One simple call.
A report needs a title and a body. Pass those two values to a function and the report is ready to read.
Edit the title or body, then create the report. A small construction function is easy to understand.
Appearance
BUILDER / THE WALKTHROUGH
From a growing argument list to deliberate construction steps.
CHAPTER 1 OF 3
A report needs a title and a body. Pass those two values to a function and the report is ready to read.
Edit the title or body, then create the report. A small construction function is easy to understand.
LIVE REPORT WORKSHOP
Choose the content, then create a completed report.
No report built yet.
basicReport("Weekly update", "We shipped a new lesson and collected reader feedback.")Generated from the current inputs. The workshop executes TypeScript; Kotlin shows the equivalent arguments.
There is no need to add a builder around a two-argument function. First see whether the construction actually becomes complex.
export function basicReport(title: string, body: string) {
return createReport({ title, body });
}Each chapter starts fresh. Theme and language changes preserve the current example.