Sorting a list or string

Started by joejoe, July 11, 2018, 02:16:28 AM

Previous topic - Next topic

joejoe

Hi and thanks!


(set 'word (join titles " "))
(set 'words (find-all {w{5,}} word))
(set 'worder (lower-case (string words)))
(println (sort worder))

ERR: list or array expected in function sort : worder

worder looks similar to this: ("one" "two" "three")



How would I best sort this?



Thanks very much for help!

gekkonier

#1
Hello!

Please provide a valid content for the symbol titles, and what output you expect from that given data.

Your code does not work at all ;)

rrq

#2
You might have meant the third line be
(set 'worder (map lower-case words))

gekkonier

#3
It's kind of tedious. I hope everything is alright with joejoe...

;)



One can only guess if you don't get any feedback.

joejoe

#4
Quote from: "ralph.ronnquist"You might have meant the third line be
(set 'worder (map lower-case words))

Ralph, you always bat cleanup around here. Thank you!



It's hard to admit you know what I want to do before I even thought to do it! ;0)



Thanks for this very much and learned going forward. Big thanks for this and all many past!