How to sort two lists? Sort distance
|
12-03-2019, 06:00 PM
Post: #18
|
|||
|
|||
RE: How to sort two lists?
Schwartzian transform (DSU sort)
XCas> lst := [2,3,6,8,5,9] XCas> tran(sort(map(lst, x->[abs(x-5), x])))(2) → [5,6,3,2,8,9] |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)