RSS/Atom feed Twitter
Site is read-only, email is disabled

script-fu

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

script-fu Jan Wuerthner 14 Aug 17:03
  script-fu Jan Wuerthner 16 Aug 11:53
Jan Wuerthner
2006-08-14 17:03:45 UTC (over 17 years ago)

script-fu

Hello all,

i am trying to do some scripting with gimp's scheme interpreter. Can anyone tell me how to sort a list? From the internet I found

(set! mylist '(10 3 12)) (sort mylist

by the way: Is there a better way to debug such a script? The error message is rather uninformative...

thanks in advance, kind regards
Jan

Jan Wuerthner
2006-08-16 11:53:55 UTC (over 17 years ago)

script-fu

Hi,

I found a solution to that problem: just in case, anyone is interested:

the command is qsort:

(set! li '(4 6 2 3 8)) (qsort li < car)

gives

((2 c) (3 d) (4 a) (6 b) (8 e))

kind regards Jan Würthner

-------- Original-Nachricht -------- Datum: Mon, 14 Aug 2006 17:03:45 +0200 Von: "Jan Wuerthner"
An: gimp-user@lists.xcf.berkeley.edu Betreff: [Gimp-user] script-fu

Hello all,

i am trying to do some scripting with gimp's scheme interpreter. Can anyone tell me how to sort a list? From the internet I found

(set! mylist '(10 3 12)) (sort mylist

by the way: Is there a better way to debug such a script? The error message is rather uninformative...

thanks in advance, kind regards
Jan