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
@vrom911 Awesome idea! I think the Slist.NonEmpty module would be a great place for this data type 🙂
The :| constructor is taken by the NonEmpty, unfortunatately. But maybe we don't need fancy operators. I see two options: introduce something similar to Cons for ordinary lists, e.g. "non-empty" cons:
Create another data structure similar to
NonEmpty
implemented through the ordinary list. Something like this:The text was updated successfully, but these errors were encountered: