jbee / jadamant

persistent (immutable) data structures library for Java
7 stars 1 forks source link

empty constant in List, Bag, Set, Map... #21

Open jbee opened 12 years ago

jbee commented 12 years ago

Should there be a constant empty in each of the list types having element type Object (generic is not possible) ?

This would allow a easy access like:

List<Object> l = List.empty;
jbee commented 12 years ago

List, Bag and Set``got theirempty`. Maps are waiting...