Enumerated collections (e.g. lists, sets, etc.) provided by programming languages are usually defined by completely and precisely enumerating all their constituent elements. Conversely, in (constraint) logic programming languages it is common to deal with partially specified collections where either some elements or some parts of the collection are left unknown. In this paper we claim that partially specified collections (in particular, lists and sets) can be conveniently exploited in a wider setting, even in the context of more conventional languages using a library-based approach. We prove this claim by showing a number of simple examples using Java and the Java library JSetL.
Programming with Partially Specified Collections / Rossi, Gianfranco. - (2014), pp. 69-83.
Programming with Partially Specified Collections
ROSSI, Gianfranco
2014-01-01
Abstract
Enumerated collections (e.g. lists, sets, etc.) provided by programming languages are usually defined by completely and precisely enumerating all their constituent elements. Conversely, in (constraint) logic programming languages it is common to deal with partially specified collections where either some elements or some parts of the collection are left unknown. In this paper we claim that partially specified collections (in particular, lists and sets) can be conveniently exploited in a wider setting, even in the context of more conventional languages using a library-based approach. We prove this claim by showing a number of simple examples using Java and the Java library JSetL.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.