A first sentence
This chapter has 5 cells and writes 6 promises. In each of its four editions its cells were run in one fresh process on 2026-10-08 20:15: English, 5 cells ran, 6 promises kept; Français, 5 cells ran, 6 promises kept; العربية, 5 cells ran, 6 promises kept; Hausa, 5 cells ran, 6 promises kept. The four editions make the same promises, cell for cell. No edition stores any output.
The guard
The course's guard is course_narrated.ring(opens in a new tab): it runs every chapter in all four languages, compares the promises from one edition to the next, and has every exercise prove itself on its wrong and right answers. This page asked the same questions of the same objects, in one process inside the library, at commit 0e72e2e2c. To prove this chapter alone, from your copy of the repository:
cd libraries/stzlib/base/test/education # run course_narrated with the repository's runtime, for this chapter: # course_narrated a-first-sentence
run on 2026-10-08 20:15 inside the library at commit 4a184e6f0, in 246.4 s for the whole book · The four editions of the chapter: English(opens in a new tab) · Français(opens in a new tab) · العربية(opens in a new tab) · Hausa(opens in a new tab)
The reader stores no output, by the course's own law; this page is the record of a run, made for it.
The cells, run
Cell 1 · 2. Select the object
o1 = new stzString("the bread was cold and the tea was cold")
? o1.NumberOfWords()
#--> 99
ran: the promise is kept · in all four editions
This cell in the chapter: English(opens in a new tab) · Français(opens in a new tab) · العربية(opens in a new tab) · Hausa(opens in a new tab)
Cell 2 · 3. Ask the string for its words
? @@( o1.Words() ) #--> [ "the", "bread", "was", "cold", "and", "the", "tea", "was", "cold" ]
[ "the", "bread", "was", "cold", "and", "the", "tea", "was", "cold" ]
ran: the promise is kept · in all four editions
This cell in the chapter: English(opens in a new tab) · Français(opens in a new tab) · العربية(opens in a new tab) · Hausa(opens in a new tab)
Cell 3 · 4. The keyword "repeat" belongs to a list
oW = new stzList( o1.Words() ) ? oW.ContainsDuplicates() #--> TRUE ? oW.NumberOfDuplicates() #--> 3
1 3
ran: the promise is kept · in all four editions
This cell in the chapter: English(opens in a new tab) · Français(opens in a new tab) · العربية(opens in a new tab) · Hausa(opens in a new tab)
Cell 4 · 5. Find, then apply
? @@( oW.FindDuplicates() ) #--> [ 6, 8, 9 ] ? @@( oW.DuplicatesRemoved() ) #--> [ "the", "bread", "was", "cold", "and", "tea" ]
[ 6, 8, 9 ] [ "the", "bread", "was", "cold", "and", "tea" ]
ran: the promise is kept · in all four editions
This cell in the chapter: English(opens in a new tab) · Français(opens in a new tab) · العربية(opens in a new tab) · Hausa(opens in a new tab)
Cell 5 · 6. Your workplace, as a sentence
aReq = EduWorldObjects("requested")
? Q(aReq).Joined(", ")
? Q( Q(aReq).Joined(" ") ).NumberOfWords()margherita, tiramisu, margherita, lasagna, tiramisu, margherita 6
ran: this cell writes no promise
This cell in the chapter: English(opens in a new tab) · Français(opens in a new tab) · العربية(opens in a new tab) · Hausa(opens in a new tab)
The exercises
Every exercise proves itself: its wrong answers are refused and its right answers accepted.
ex-02-01 · Exercise 2.1 · The complaint
2 of 2 wrong answers refused, 2 of 2 right answers accepted
01-counts-every-word.ring refused · 02-counts-the-repeats.ring refused · 01-remove-then-count.ring accepted · 02-the-passive-form.ring accepted

