The Ref type connected to RefCell supports some methods for changing the type of the reference, such as map and filter_map. While map is clearly fully general, filter_map is somewhat of a special case hooked into Option. To make it fully general would likely require HKT. We need an overall plan before stabilization.
The
Reftype connected toRefCellsupports some methods for changing the type of the reference, such asmapandfilter_map. Whilemapis clearly fully general,filter_mapis somewhat of a special case hooked intoOption. To make it fully general would likely require HKT. We need an overall plan before stabilization.