Oh wait do the iOS versions of other browsers use WebKit?
@RadvylfPrograms So apparently they switched (or are letting you switch) from Rhino, which tied you to ES5, to V8, which lets you use "modern ECMAScript syntax," whatever that means
> The underlying V8 engine is good and supports the latest features, but the parser won't allow you to save or execute the project with those features, as it considers them as syntax errors.
because i see a reading of this where the answer is x=>x
CMP: is the empty string a valid answer if you say its a js function? you can "call" it by putting parenthesis "after" it and your argument in the parenthesis
well you could maybe define a function which has the same effects as (a,b,c) but idk how you handle the fact that just () is a syntax error and not a regular error :P
Does there exist a synchronizing word? code-golf decision-problem string
A complete deterministic finite automaton is a machine, with some states. Each state in the automaton has, for each character in the alphabet, a pointer to a state (not necessarily a different one). The automaton starts at s...
Contrasting Colors code-golf
When designing a website or poster or book it's important to make the graphical elements be distinct. A common mistake is to choose colors to similar to eachother. We must prevent this!
The goal of this challenge is simple: Given a initial color and a number of colors...
@thejonymyster There's str.title, which capitalizes the first letter of each word. If you just want to uppercase the first letter of the string, I think you have to do it separately--something like lambda s:s[0].upper()+s[1:]
In QBasic, there's technically not a way to get a specific character from a string, just several builtin functions for substrings (which you can of course use to get a 1-character substring).
So I suppose that's different from Python, but when I learned Python it didn't surprise me at all.
@thejonymyster In BQN, there's a difference between numbers and dimension-0 arrays, and I think the docs say this is one of the differences between BQN and APL.
@user the problem is the inconsistency IMO. 'a' is a character but 'ab' is a string. they should have different syntax even if its longer for characters
I'm kinda torn because languages with ' for characters and " for strings make more sense but strings are used more often so I prefer the less noisy ' when using JS and Python
though on a cursory search, I don't think the inverse challenge has been asked yet (given a ragged list and a ragged index, find the element at that index)
@user what do you think of lisp's weird #\c syntax? Or something similar that doesn't need to be closed because if you think about it, characters aren't going to extend for more than one .... character (barring escapes) so they don't need to be closed
In GoL, assuming an infinite board, if two board states \$B_i\$ and \$B_j\$ are identical, with \$j > i\$ (i.e. occurs strictly later), is it true that no more "meaningful" change can occur? That is, the board is entirely still lifes, and oscillators?
A ragged list is a (finite depth) list where each element is either a positive integer or a ragged list.
A ragged list is properly tiered if it contains either all positive integers or all properly tiered ragged lists.
For example [1,2,3,6] is properly tiered because it is a list of all positive ...