if you limit the domain D and codomain C of the function, then the number of functions f : D → C is |C|^|D|, because you have |C| options for every function output, and you pick the output for |D| different inputs
November 15, 2025 at 11:50 PM
if you limit the domain D and codomain C of the function, then the number of functions f : D → C is |C|^|D|, because you have |C| options for every function output, and you pick the output for |D| different inputs
well for every set you can define an identity function on it, but also every function IS a set of ordered pairs, soooo I'd say the number of functions is the same as the number of sets, which isn't actually a cardinal number, since cardinal numbers are sets and there is no set of all sets
November 15, 2025 at 11:46 PM
well for every set you can define an identity function on it, but also every function IS a set of ordered pairs, soooo I'd say the number of functions is the same as the number of sets, which isn't actually a cardinal number, since cardinal numbers are sets and there is no set of all sets
and it's so sneaky cuz it converts them back into numbers after sorting so you can't even see it did that! like why would it do that unless it feels guilt and has something to hide???
October 27, 2025 at 4:17 PM
and it's so sneaky cuz it converts them back into numbers after sorting so you can't even see it did that! like why would it do that unless it feels guilt and has something to hide???
i remember on my last job when there was a weird bug that i couldn't fix for an entire week, and then it turned out to be because the sort method in javascript called on an array of numbers CONVERTS THEM INTO STRINGS BEFORE COMPARING THEM AND THEN PRETENDS THAT YOU STILL HAVE AN ARRAY OF NUMBERS
October 27, 2025 at 9:43 AM
i remember on my last job when there was a weird bug that i couldn't fix for an entire week, and then it turned out to be because the sort method in javascript called on an array of numbers CONVERTS THEM INTO STRINGS BEFORE COMPARING THEM AND THEN PRETENDS THAT YOU STILL HAVE AN ARRAY OF NUMBERS