@lyxal it's a good thing that characters have a wide range of widths in normal fonts but yeah it would be really nice if monospace fonts had wider coverage
INSERT ... ON DUPLICATE KEY UPDATE didn't actually work since i'm not using mysql (my bad, should've specified) but it gave me the words i needed to look up the right answer :P
apparently it's INSERT ... ON CONFLICT (columns) DO UPDATE SET ...
Find my Māori pronouns
The Māori language has quite simple pronouns. It uses a single word for he/she/they/etc (ia), and the words for "you" and "me" are koe and au respectively.
There are also words for groups of two or more people:
tāua - You and me (we, au and koe)
māua - Me and them (we, au ...
for [0,n] i'd personally lean towards something containing z due to my jelly bias but if indexing is 0-based you could use something based on i for "inclusive"
∶∵∴∷ could work as a 4-part graphical analogy perhaps
In general, dependently typed languages can +- do that, but usually there's no difference in syntax between a type-level function and a "plain" function, so there's no special "XXX's type system" answers in those languages
Typescript is unique because it was closely tied to JS patterns from the start and therefore was designed JSically, not mathematically
Inspired from this SO post.
Given a vector (first parameter), e.g.:
char = ["A", "B", "C", "A", "A"]
For each element of the vector, find the distance to the closest subsequent specified value (second parameter). When the element is equal to the specified value, return 0.
f(char, "A") -> [0 2 1 ...
Uh, just one thing I noticed: The first nomination here won't be able to receive a bounty if it wins as the OP has no answers and hasn't been here in months.
My stovetop has 10 (0 through 9) different settings of heat and a very odd way of cycling through them.
It always starts at 0
When I hit plus (+) it increments the number, unless the number is 9 in which case it becomes 0, or the number is 0 in which case it becomes 9.
When I hit minus (-) it ...
Is it necessary to make a Terms of Service for any service like that? I'm asking because I plan to make one myself and release it to the public, as I'm working on a new programming language.
@ThisFieldIsRequired most things will probably be covered under anti-hacking laws but if you want to disallow things like raw tomatoes or "content that seeks to promote a political or religious interest" then you'll need some kind of ToS
@StackMeterPlus Yes, and that's why I have let you assume that you will only be given inputs for which a solution exists. And since you can do "happy new year", "have a happy new year", "happy new year to you" and "have a happy new year to you", there are 4 possible "modulo 32" values for the non-exclamation part, then you keep adding 33 thereafter to get the total sum of character codes. But I agree that there isn't always a solution.
@pxeger Right, got it. Do you see what people write on ATO? If not, then it probably isn't necessary to prohibit content that seeks to promote a political or religious interest, or for that matter raw tomatoes.