You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, one needs to use Set.fromList [member] to create a set with a single member.
Add another constructor, allowing to create sets with a single member.
singleton {A} {{Ord A}} (a : A) :Set A := Set.insert a Set.empty;
Do the same for Map as well
The text was updated successfully, but these errors were encountered:
heueristik
changed the title
Add a function to create a set with a single member
Add a function to create Set and Map with a single member
Oct 16, 2024
Currently, one needs to use
Set.fromList [member]
to create a set with a single member.Add another constructor, allowing to create sets with a single member.
Do the same for
Map
as wellThe text was updated successfully, but these errors were encountered: