23-Emerald V
October 21, 2021
Question
Rosetta Code - Compare a list of strings
- October 21, 2021
- 2 replies
- 2931 views
I've added the following solution to the Rosetta Code task: Compare a list of strings
The new Mathcad entry is at https://rosettacode.org/wiki/Compare_a_list_of_strings#Mathcad
Given a list of arbitrarily many strings, show how to:
• test if they are all lexically equal
• test if every string is lexically less than the one after it (i.e. whether the list is in strict ascending order)
Each of those two tests should result in a single true or false value, which could be used as the condition of an if statement or similar.
If the input list has less than two elements, the tests should always return true.

As always, please feel free to improve upon and submit your own solution to this and the other Rosetta Stone tasks.
Stuart

