Liking cljdoc? Tell your friends :D

finagle-clojure.scala

Utilities for interop with JVM classes generated from Scala code. Scala functions & methods expect Scala collection & function instances, not Java Collections or Clojure IFns.

Utilities for interop with JVM classes generated from Scala code.
Scala functions & methods expect Scala collection & function instances,
not Java Collections or Clojure IFns.
raw docstring

Functioncljmacro

(Function [arg-name] & body)

Create a new com.twitter.util.Function. It can be used a scala.Function1 or scala.PartialFunction. args-binding should be a vector containing one element [arg-name] the name to bind the parameter to the Function to. The apply method will be implemented with body.

Create a new com.twitter.util.Function.
It can be used a scala.Function1 or scala.PartialFunction.
`args-binding` should be a vector containing one element `[arg-name]`
the name to bind the parameter to the Function to.
The apply method will be implemented with body.
sourceraw docstring

Function*clj

(Function* apply-fn)
(Function* apply-fn defined-at-class)
source

Function0cljmacro

(Function0 & body)

Create a new scala.Function0. The apply method will be implemented with body.

Create a new scala.Function0.
The apply method will be implemented with body.
sourceraw docstring

Function0*clj

(Function0* f)

Create a new scala.Function0. The apply method will be implemented with f.

Create a new scala.Function0.
The apply method will be implemented with f.
sourceraw docstring

LiftToFunction0cljprotocol

lift->fn0clj

(lift->fn0 this)
source

LiftToFunction1cljprotocol

lift->fn1clj

(lift->fn1 this)
source

scala-map->mapclj

(scala-map->map m)

Convert a Scala Map to a map

Arguments:

  • m: a scala.collectin.Map

Returns:

A PersistentHashMap with the conents of m.

Convert a Scala Map to a map

*Arguments*:

  * `m`: a scala.collectin.Map

*Returns*:

  A PersistentHashMap with the conents of `m`.
sourceraw docstring

scala-seq->vecclj

(scala-seq->vec scala-seq)

Convert a Scala Seq to a vector.

Arguments:

  • scala-seq: a Scala Seq

Returns:

A PersistentVector with the contents of scala-seq.

Convert a Scala Seq to a vector.

*Arguments*:

  * `scala-seq`: a Scala Seq

*Returns*:

  A PersistentVector with the contents of `scala-seq`.
sourceraw docstring

seq->scala-bufferclj

(seq->scala-buffer seq)

Convert a Clojure seq to a Scala Buffer.

Arguments:

  • seq: a Clojure seq

Returns:

A Scala Buffer with the contents of seq.

Convert a Clojure seq to a Scala Buffer.

*Arguments*:

  * `seq`: a Clojure seq

*Returns*:

  A Scala Buffer with the contents of `seq`.
sourceraw docstring

tuple->vecclj

(tuple->vec p)
source

unitclj

The Scala Unit value.

The Scala Unit value.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close