Skip to content

Instantly share code, notes, and snippets.

@mpilquist
Created September 13, 2016 13:17
Show Gist options
  • Save mpilquist/9f2d8542a96e9a9eef28a500323de86f to your computer and use it in GitHub Desktop.
Save mpilquist/9f2d8542a96e9a9eef28a500323de86f to your computer and use it in GitHub Desktop.
› amm
Loading...
Welcome to the Ammonite Repl 0.7.6
(Scala 2.11.8 Java 1.8.0_65)
@ import $ivy.`org.scalaz::scalaz-core:7.2.6`
:: loading settings :: url = jar:file:/usr/local/Cellar/ammonite-repl/0.7.6/bin/amm!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.scalaz#scalaz-core_2.11-caller;working
confs: [default]
found org.scalaz#scalaz-core_2.11;7.2.6 in chain-resolver
found org.scala-lang#scala-library;2.11.8 in chain-resolver
[2.11.8] org.scala-lang#scala-library;2.11.8
import $ivy.$
@ import scalaz._
import scalaz._
@ import Scalaz._
import Scalaz._
@ List(1, -1, 2, -2, 3, -3).traverse(x => if (x >= 0) Some(x) else None)
res3: Option[List[Int]] = None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment