Bob Nystrom
d46dfc9500
Allow "*" on lists and strings to repeat them.
...
This is not implemented on Sequence because, at least for lists and
strings, I think users expect an eager result. Multiplying a string
should give you back a string, not a lazy sequence of repeated
characters.
This also mirrors "+" on strings and lists, which is eager. I like the
idea of having a general guideline that operators are eager.
Repetition is useful for arbitrary sequences, but for that maybe we
should add a "repeat()" method.
2016-02-24 07:48:03 -08:00
..
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-03-14 12:45:56 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-09-15 07:46:09 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-09-15 07:46:09 -07:00
2015-03-14 12:45:56 -07:00
2015-09-15 07:46:09 -07:00
2016-02-24 07:48:03 -08:00
2016-02-24 07:48:03 -08:00
2016-02-24 07:48:03 -08:00
2016-02-24 07:48:03 -08:00
2015-09-01 08:16:04 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-09-01 22:14:55 -07:00
2015-09-01 22:14:55 -07:00
2015-09-01 22:14:55 -07:00
2015-09-01 22:14:55 -07:00
2015-09-01 22:14:55 -07:00
2015-09-01 22:14:55 -07:00
2015-09-01 22:14:55 -07:00
2015-09-01 22:14:55 -07:00
2015-12-06 10:37:58 -08:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00
2015-09-15 07:46:09 -07:00