View Single Post
Old 10-16-2011, 08:24 AM   #16
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,489
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Thanks. I will look.
Quote:
Originally Posted by Noughty View Post
I just changed this one to, #length wasn't needed here, only word Short:
Code:
program:
list_sort(
   list_difference(
      list_union(field('#shelf'), field('tags'), ','),
      list_union(strcat('Short', ',',
        'delete'),
         strcat(field('#genre'), ',',
                field('#mode'), ',', 
                field('#character')),
         ','), 
      ','),
   0, ',')
You can improve this by eliminating the first strcat, because all the arguments are constants. Try:
Code:
program:
list_sort(
   list_difference(
      list_union(field('#shelf'), field('tags'), ','),
      list_union('Short, delete',
         strcat(field('#genre'), ',',
                field('#mode'), ',', 
                field('#character')),
         ','), 
      ','),
   0, ',')
chaley is offline   Reply With Quote