Fork me on GitHub
#malli
<
2022-05-18
>
Ferdinand Beyer12:05:06

Is there a schema for any homogenous collection, similar to spec’s coll-of? I found :vector , :sequential and :set, and fell into the trap that a set is not sequential?. I want to spec a function that will take any collection and passes it to (set).

Ferdinand Beyer13:05:59

Would it be worth adding a :coll schema to base-schemas like this?

:coll (-collection-schema {:type :coll, :pred coll?})

👍 1