Diagraphs for checking sortedness #741
Labels
difficulty: easy
Very simple and won't take very long at all.
enhancement
New feature or request
request: element
A request to create new element(s)
We should have some diagraphs for checking various sortednesses. At the moment, just checking if a list/string is sorted requires 3 bytes:
:s=
. Having this as a diagraph would be nice, and while we're at it, I think we should add a few more. I think we should add diagraphs to check if a list/string:[1,2,3] → 1
[3,2,1] → 0
[1,3,2] → 0
[1,2,3] → 0
[3,2,1] → 1
[1,3,2] → 0
[1,2,3] → 1
[3,2,1] → 1
[1,3,2] → 0
[1,2,3] → 0
[3,2,1] → 0
[1,3,2] → 1
Let me know if you need any elaboration. Feel free to propose similar diagraphs and I'll add them to the list.
The text was updated successfully, but these errors were encountered: