Class ToSet

  • All Implemented Interfaces:
    Function<Object,​Set<?>>

    public class ToSet
    extends KorypheFunction<Object,​Set<?>>
    A ToSet is a Function that takes an Object and converts it to a set. If the object is an array or iterable the items will be added to a new set. Otherwise a new set is created with the single value as an item.