graphemecluster

Results 106 comments of graphemecluster
trafficstars

That's bad; it seems that the checker really hate `T extends readonly any[] ? T` that line.

It seems that I can't use the TypeScript bot, @sandersn please help me run the test suite again.

Heck no. It seems that without making it looser it won’t be a solution.

I've just tinkered with it a bit. @sandersn Could you please give it another try?

Actually most of the cases above just work by adding an `extends any` constraint on the generic parameter (see the test cases I added). Perhaps it’s a separated but related...

@sandersn A rough explanation looks like: ```ts type ToArray = // Distribute it T extends any ? ( // if T == any, return any[] true extends false & T...

I should have replied earlier – this does not fix the problem at all. What I observed from your code is that the time complexity of your algorithm is O(n²)....

Here is the performance test I did yesterday: ![Performance Test](https://user-images.githubusercontent.com/53967830/193889828-d15ddf6a-4bcd-4661-8d07-b414acd3ade1.jpeg)

Of course, I’d be happier with a ML-based segmentation if possible though.

建議用新加嘅 `輕脣韻`、括號同 `非` 運算子等等簡化 `is` 入面嘅運算式 同埋新方案建議 prefer `` is`…` `` over `is('…')`