Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
It's called a spread operator, you can use it to define "the rest" of arguments, like (a, b, ...rest) and that'll be an array of the additional arguments. You can call this as myFunc(a, b, c, d) and the rest argument will contain [c, d]. I hope this makes sense. :)
Could you explain what is doing ...names?
AFAIK, it's because i64 implements the trait Ord, which contains those methods.
amazing
the comparison to "(" in the else statement only checks if stack.pop failed due to not having any more entries.
This would break if a function with rest params is yacked, right?
Say you yack function add(x, y, z, ...more), which adds x, y, z, and everything in more. If you yack(add)(1, 2, 3, 4, 5), you'd get 15, not 6.
(I'm jealous of such a concise answer tbh :)
Using arrow functions (which would maintain the same context in a class object as normal functions, and follows the condition
.emit() should use its own invocation context as handers' invocation context
) breaks some test cases undershould subscribe handlers and invoke them with correct arguments and context
since you can't redefine the context of an arrow function via call, apply, bind, or otherwise.Shouldn't you not be accessing private variables in prototype methods? I'm curious as to how you formatted your first solution since locally scoped variables aren't accessible in methods defined in the prototype.