Ben Moon
|
9b128b8dbe
|
Shuffle: Update to use Parse::List Role (#3619)
* Update list parsing/formatting to use role
* Remove tests that duplicate role testing
|
2017-08-28 18:06:55 -04:00 |
Ben Moon
|
6c8b74cf0e
|
Add tests for example queries
|
2016-05-20 13:51:05 +01:00 |
Ben Moon
|
d07d944ff0
|
Expand triggers (even more)
|
2016-05-20 13:47:12 +01:00 |
Ben Moon
|
34286dbecd
|
Add more triggers
|
2016-05-20 13:12:33 +01:00 |
Ben Moon
|
50f2aa6426
|
Add support for basic ranges
E.g., `shuffle a..z`, `shuffle 1..7`.
|
2016-05-20 12:51:52 +01:00 |
Ben Moon
|
b550ec9852
|
Add support for word lists
E.g., `1 and 2 and 3, and 4`
|
2016-05-20 12:04:06 +01:00 |
Ben Moon
|
777c661d9b
|
Turn off caching
Whoops - we don't want to cache random results!
|
2016-05-20 11:35:04 +01:00 |
Ben Moon
|
0d1c29d08c
|
Add test for postfix form
|
2016-05-14 17:17:04 +01:00 |
Ben Moon
|
07dc434bf8
|
Ensure no triggering on empty remainder
|
2016-05-14 17:15:45 +01:00 |
Ben Moon
|
ba3c840566
|
Ensure we don't trigger if we've nowt to shuffle
shuffle xs | length xs <= 1 = xs forall xs
That says it all.
|
2016-05-14 17:11:50 +01:00 |
Ben Moon
|
775c1e0f49
|
Add Shuffle Instant Answer
Allows shuffling of random inputs (mainly lists).
|
2016-05-14 17:10:31 +01:00 |