Legend:
- ✏️ method changes
this
. - 🔒 method does not change
this
.
Array<T>.prototype.*
:
concat(...items: Array): T[]
🔒 ES3
<details>
<summary>How do I dropdown?</summary>
This is how you dropdown.
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/
directory. Let's call this compile.sh
for our purposes, but for your project it might be npm build
or gulp make-docs
or anything similar.
The out/
directory should contain everything you want deployed to gh-pages
. That almost always includes an index.html
.
sealed trait TreeLike[M[_]] { | |
def node[A](f: M[A], g: M[A]): M[A] | |
} | |
sealed trait Tree[+A] { self => | |
def flatMap[B](f: A => Tree[B]): Tree[B] = self match { | |
case Leaf(a) => f(a) | |
case Node(l, r) => Node(l.flatMap(f), r.flatMap(f)) | |
} | |
} |
package labs; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.reflect.InvocationHandler; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Proxy; | |
import java.util.Arrays; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.ConcurrentMap; | |
import java.util.stream.Collectors; |