View Single Post
Old 03-09-2024, 06:25 AM   #4
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,019
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
I knew you would come up with a cleverer solution

And indeed, series could have not an index of 1. My improvement would be (I like to keep code small):
Code:
series:true and series_index:"<=1"
This will find 0, 0.n and 1.

I have the impression
Code:
template:"""{series_index}#@#:n:<=1"""
is quicker, though (1 comparison less)

Last edited by DrChiper; 03-09-2024 at 08:17 AM.
DrChiper is offline   Reply With Quote