Skip to content

Type Interfaces : EmptyUnit

johnmcclean-aol edited this page Nov 23, 2016 · 1 revision

The Unit interface

The EmptyUnit interface defines an emptyUnit method that creates an empty instance of the concrete type.

EmptyUnit contains a single method

  • emptyUnit : create a new instance of the concrete type of the EmptyUnit with the supplied generic parameter

Examples

AnyM<String> list = AnyM.fromList(ListX.of(1,2,3))
                           .emptyUnit(); //AnyM[List()]

Implementations

AnyM, AnyMSeq, AnyMValue

Clone this wiki locally