lux/data/sum

Functionality for working with variants (particularly 2-variants).

Values

(either f g s)

(All [a b c] (-> (-> a c) (-> b c) (| a b) c))

(left value)

(All [a b] (-> a (| a b)))

(lefts es)

(All [a b] (-> (lux;List (| a b)) (lux;List a)))

(partition xs)

(All [a b] (-> (lux;List (| a b)) [(lux;List a) (lux;List b)]))

(right value)

(All [a b] (-> b (| a b)))

(rights es)

(All [a b] (-> (lux;List (| a b)) (lux;List b)))