This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def shuffle[T](s: Seq[T], prefix: Seq[T] = Vector()): Gen[Seq[T]] = | |
if (s.length == 0) Gen.const(prefix.toSeq) | |
else | |
Gen.choose(0, s.length - 1) | |
.flatMap { i => shuffle(s.take(i) ++ s.takeRight(s.length - i - 1), prefix :+ s(i)) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
# Solarized light | |
skin: { | |
// base00 base3 / base1 base2 | |
default: "rgb(101, 123, 131) rgb(253, 246, 227) / rgb(147, 161, 161) rgb(238, 232, 213)" | |
// base1 default | |
tree: "rgb(147, 161, 161) none" | |
// default default | |
file: "none none" | |
// blue default bold |