-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
featuregood first issueRelatively localized/straightforward changes that would provide a good introduction to mathjs codeRelatively localized/straightforward changes that would provide a good introduction to mathjs codehelp wanted
Milestone
Description
Nothing in the documentation for setDistinct implies anything about sorting the array/matrix, yet:
math.setDistinct([3, 1, 2]); // [1, 2, 3]
math.setDistinct(['h', 'e', 'l', 'l', 'o']); // ['e', 'h', 'l', 'o']
Expected
math.setDistinct([3, 1, 2]); // [3, 1, 2]
math.setDistinct(['h', 'e', 'l', 'l', 'o']); // ['h', 'e', 'l', 'o']
Docs: setDistinct
Code: .sort(compareNatural)
Metadata
Metadata
Assignees
Labels
featuregood first issueRelatively localized/straightforward changes that would provide a good introduction to mathjs codeRelatively localized/straightforward changes that would provide a good introduction to mathjs codehelp wanted