Replies: 2 comments
-
worked around by implementing mergesort in dsl... for the interested:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Sorry for the late reply, good job! KCL will support additional parameters for sorted functions in the future, just like Python. Besides, If you are willing, you can also contribute this sorting implementation to the community https://github.com/kcl-lang/modules |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i try to sort the output of KCL by a given order (similar to konfig repo, but it doesnt seem to be used there):
but apparently,
sorted
doesnt accept a custom key-lookup function although it was mentioned here: https://www.kcl-lang.io/docs/reference/lang/spec/modules#the-built-in-system-packagehow can this be done then?
Beta Was this translation helpful? Give feedback.
All reactions