Anonymous user
Sort the letters of string in alphabetical order: Difference between revisions
Sort the letters of string in alphabetical order (view source)
Revision as of 14:36, 17 August 2022
, 1 year ago→{{header|Eiffel}}
Line 413:
do
create l_list.make_from_iterable (s) -- Add & Auto-sort string by chars
create Result.make_empty
⟳ c:l_list ¦ Result.append_character (c) ⟲ -- Populate it with the sorted chars
Result.adjust
end
|