@@ -448,6 +448,11 @@ fun <E> persistentSetOf(): PersistentSet<E> = PersistentOrderedSet.emptyOf<E>()
448
448
*/
449
449
fun <E > persistentHashSetOf (vararg elements : E ): PersistentSet <E > = PersistentHashSet .emptyOf<E >().addAll(elements.asList())
450
450
451
+ /* *
452
+ * Returns an empty persistent set.
453
+ */
454
+ fun <E > persistentHashSetOf (): PersistentSet <E > = PersistentHashSet .emptyOf()
455
+
451
456
452
457
/* *
453
458
* Returns a new persistent map with the specified contents, given as a list of pairs
@@ -459,6 +464,12 @@ fun <E> persistentHashSetOf(vararg elements: E): PersistentSet<E> = PersistentHa
459
464
*/
460
465
fun <K , V > persistentMapOf (vararg pairs : Pair <K , V >): PersistentMap <K , V > = PersistentOrderedMap .emptyOf<K ,V >().mutate { it + = pairs }
461
466
467
+ /* *
468
+ * Returns an empty persistent map.
469
+ */
470
+ fun <K , V > persistentMapOf (): PersistentMap <K , V > = PersistentOrderedMap .emptyOf()
471
+
472
+
462
473
/* *
463
474
* Returns a new persistent map with the specified contents, given as a list of pairs
464
475
* where the first component is the key and the second is the value.
@@ -469,6 +480,11 @@ fun <K, V> persistentMapOf(vararg pairs: Pair<K, V>): PersistentMap<K, V> = Pers
469
480
*/
470
481
fun <K , V > persistentHashMapOf (vararg pairs : Pair <K , V >): PersistentMap <K , V > = PersistentHashMap .emptyOf<K ,V >().mutate { it + = pairs }
471
482
483
+ /* *
484
+ * Returns an empty persistent map.
485
+ */
486
+ fun <K , V > persistentHashMapOf (): PersistentMap <K , V > = PersistentHashMap .emptyOf()
487
+
472
488
473
489
/* *
474
490
* Returns a new persistent list of the specified elements.
0 commit comments