listless


Also found in: Dictionary, Thesaurus, Medical, Legal, Wikipedia.
Related to listless: restless

listless

(programming)
In functional programming, a property of a function which allows it to be combined with other functions in a way that eliminates intermediate data structures, especially lists.

Phil Wadler's thesis gives the conditions for a function to be in listless form: each input list is traversed only once, one element at a time, from left to right. Each output list is generated once, one element at a time, from left to right. No other lists are generated or traversed.

Not all functions can be expressed in listless form (e.g. reverse).
References in classic literature ?
After some days spent in listless indolence, during which I traversed many leagues, I arrived at Strasbourg, where I waited two days for Clerval.
Next day at morning lesson the teacher observed that his pupil was indeed looking pale and jaded, with listless eyes and a weary manner.
It would seem that his search was fruitless; for after a few moments of indolent and listless examination, he suffered his huge frame to descend the gentle declivity, in the same sluggish manner that an over fatted beast would have yielded to the downward pressure.
When I asked myself what was to be done next, hopeless confusion, maddening doubt, filled my mind, and transformed me into the most listless and helpless of living women.
Some moments elapsed before they could distinctly remember where they were, or how they got there; or recollected that while they were standing idle and listless spectators of the fire, they had tools in their hands which had been hurriedly given them that they might free themselves from their fetters.
It was gone before she could study it and the listless expression back again.
He looked and then he smiled, as he could not well help doing, for it was capitally done, the long, lazy figure on the grass, with listless face, half-shut eyes, and one hand holding a cigar, from which came the little wreath of smoke that encircled the dreamer's head.
This man, whom they had noticed from the first for the same reason they had themselves been remarked by others, was walking in a listless way up and down the jetty.
I should lie out in the garden in a hammock and read sentimental novels with a melancholy ending, until the books should fall from my listless hand, and I should recline there, dreamily gazing into the deep blue of the firmament, watching the fleecy clouds floating like white-sailed ships across its depths, and listening to the joyous song of the birds and the low rustling of the trees.
He noticed that, whereas the Protestant church was nearly empty and the congregation had a listless air, the Jesuit on the other hand was crowded and the worshippers seemed to pray with all their hearts.
Four hours later, Cathy has sunk deeper and deeper into the couch, unable to shake a listless sense of disappointment.
After grading Pacquiao a 4 during a listless sparring session Tuesday, Roach gave his ward a passable 6 this time.