The list indices ati and bti are used only once: to retrieve the (first) item matching the predicate. Might Data.List.find be a better fit?No, I use them via t1 and t2 to figure out which row to put the squiggle on. The attached picture might put it all in perspective.