550 karma · joined Jul 7, 2021 (5y ago) · 342 submissions
comment 4y ago · link · parent
Maybe look at it in a different situation. Imagine someone punched you in the face and when you confront them about it they saying that you're holding to silly semantics about what it means or does not mean to get punched in the face.
comment 4y ago · link · parent
type IsPrime<
MaybePrime extends number,
NumAsTuple extends unknown[] = [],
RemainderAsTuple extends unknown[] = NumAsTuple,
> =
MaybePrime extends NumAsTuple["length"]
? NumAsTuple["length"] extends RemainderAsTuple["length"]
? NumAsTuple["length"] extends (1 | 2 | 3 | 4 | 5 | 6)
? NumAsTuple["length"] extends (1 | 2 | 3 | 5)
? true
: false
: NumAsTuple extends [infer _, infer _, infer _, infer _, infer _, infer _, ...infer Rest]
? IsPrime<MaybePrime, NumAsTuple, Rest>
: false
: RemainderAsTuple["length"] extends (1 | 2 | 3 | 4 | 5 | 6)
? RemainderAsTuple["length"] extends (1 | 5)
? true
: false
: RemainderAsTuple extends [infer _, infer _, infer _, infer _, infer _, infer _, ...infer Rest]
? IsPrime<MaybePrime, NumAsTuple, Rest>
: false
: IsPrime<MaybePrime, [...NumAsTuple, 1]>;comment 4y ago · link · parent
In any case, you read with exasperation or amusement the multiple errors in a story, and then turn the page to national or international affairs, and read as if the rest of the newspaper was somehow more accurate about Palestine than the baloney you just read. You turn the page, and forget what you know.
– Michael Crichton
comment 4y ago · link · parent
[1] Bird feeders can contribute to the decline of native plants when birds who disperse the seeds in their scat feed at the feeders, their scat often lands somewhere where the seeds have no chance at germinating (sidewalk, mowed lawn etc)
comment 4y ago · link · parent
So I was grateful for the medicines I received then that may have been tested on animals or may have had animal ingredients. But I still advocate and prefer medicines to not be tested on animals and to not contain animal ingredients. I think we have a vast amount of untapped technology that could avoid that.
comment 4y ago · link · parent