Skip to content

Commit

Permalink
Use the convenience import in the README.rst example.
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-smallshire committed Dec 4, 2017
1 parent 9e12246 commit 021d8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -11,7 +11,7 @@ chaining to create complex queries without compromising readability. For
example, to take the first five uppercased results from a list of words sorted
by length and then alphabetically, try::

>>> from asq.initiators import query
>>> from asq import query
>>> words = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"]
>>> query(words).order_by(len).then_by().take(5).select(str.upper).to_list()
['ONE', 'SIX', 'TEN', 'TWO', 'FIVE']
Expand Down

0 comments on commit 021d8c6

Please sign in to comment.