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
{{ message }}
This repository has been archived by the owner on May 19, 2018. It is now read-only.
e.g. some syntax to match the typical set-builder notation of { π₯ β π΄ | proposition(π₯) }.
This is probably infeasible with the extant Dictionary-based Set (since it trivially lends itself to infinite sets, and in general should be lazy), but a SetType protocol could allow us to abstract the notion of sets appropriately for this purpose.
It would likely also be necessary to distinguish between Set and MutableSet at that point, since a set comprehension stored in a var is probably still immutable.
It may be valuable to consider set comprehensions as inductive construction of sets rather than as filtering of some domain set. Likewise, it may be valuable to consider the proposition not as a predicate but as a flat map, since that allows us to recover both maps and filters.
The text was updated successfully, but these errors were encountered:
e.g. some syntax to match the typical set-builder notation of
{ π₯ β π΄ | proposition(π₯) }
.This is probably infeasible with the extant
Dictionary
-basedSet
(since it trivially lends itself to infinite sets, and in general should be lazy), but aSetType
protocol could allow us to abstract the notion of sets appropriately for this purpose.It would likely also be necessary to distinguish between
Set
andMutableSet
at that point, since a set comprehension stored in avar
is probably still immutable.It may be valuable to consider set comprehensions as inductive construction of sets rather than as filtering of some domain set. Likewise, it may be valuable to consider the proposition not as a predicate but as a flat map, since that allows us to recover both maps and filters.
The text was updated successfully, but these errors were encountered: