Skip to content

cvogt/scala-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scala-extensions: Useful extensions for the Scala standard library http://cvogt.org/scala-extensions/ Contents: Type-level constraints (org.cvogt.constraints) - Comparisons: <:<, =:=, >:>, !=:=, !<:<, !>:>, e.g. String !=:= And - Boolean Algebra: True, False, ==, !, &&, ||, Implies, Xor - Subset tests: In, NotIn, e.g. Int NotIn (Any,AnyRef,AnyVal) Collection extensions (org.cvogt.collection) - distinctBy - remove duplicates by key - foldWhile / reduceWhile - stoppable accumulation - concat - type-safe alternative to mkString String extensions - stripIndent - alternative to stripMargin not requiring | - indent/indent(n) - indents each line - commonLinePrefix, trimLeft, trimRight, trimLinesLeft, trimLinesRight Debug (org.cvogt.scala.debug) - printCodeAfterTyper - Prints code after implicits, macros and code desugaring have been applied. For usage see: src/test/scala/* Sbt setup: libraryDependencies += "org.cvogt" %% "scala-extensions" % "0.4.1" resolvers ++= Seq( "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots", "Sonatype Releases" at "https://oss.sonatype.org/service/local/repositories/releases/content", "Sonatype Staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2" ) 

About

Useful extensions for the Scala standard library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages