Closed lue-bird closed 12 months ago
Yeah I think I know why, and it's not for a good reason.
Seems like at some point I fixed List.repeat 1 list
to list
when it should have been [ list ]
. I noticed the error a bit later and fixed it (in 489b5c6db256f43442f3a6c2f6ce90d003747156) bit did not think about fixing it to use List.singleton
or wrapping it in []
.
Implements #133 + tests:
Interestingly, there was previously a test that explicitly required
List.repeat 1 x
to not be simplified. Do you still know about why you added it?