"Source: Text/Aggregates/Set.text";
"Line: 2288";
"Date: Thu Sep 25 14:47:47 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Aggregates/Set.text, line: 2288
// Example: H10E15 ()
print "Example: H10E15";
ei := GetEchoInput();
SetEchoInput(true);
M := Multiset(Eltseq("hello world"));
for letter -> count in M do
   if count eq 1 then
      are := "is"; s := "";
   else
      are := "are"; s := "s";
   end if;
   printf "There %o %o '%o'%o\n", are, count, letter, s;
end for;
for letter in M do
   printf "'%o'\n", letter;
end for;
SetEchoInput(ei);
