Skip to content

Commit

Permalink
Also making ensure_type_set_codom less type-violent
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Arlin committed Dec 2, 2023
1 parent 1c340af commit fbc085b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/categorical_algebra/FinSets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ end
ensure_type_set(s::FinSet) = TypeSet(eltype(s))
ensure_type_set(s::TypeSet) = s
ensure_type_set_codom(f::FinFunction) =
FinDomFunction([f(i) for i in dom(f)], dom(f), TypeSet(eltype(codom(f))))
FinDomFunction(f.func,dom(f), TypeSet(eltype(codom(f))))
ensure_type_set_codom(f::IndexedFinFunctionVector) =
IndexedFinDomFunctionVector(f.func, index=f.index)
ensure_type_set_codom(f::FinDomFunction) = f
Expand Down

0 comments on commit fbc085b

Please sign in to comment.