Skip to content

Commit 1616b74

Browse files
committed
Add comment about annotateSet
1 parent c1f12c8 commit 1616b74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

recipes/SignalTrisJs/src/Main.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ setFillStyleC :: Context2D -> Color -> Effect Unit
397397
setFillStyleC ctx = setFillStyle ctx <<< toHexString
398398

399399
-----------------
400+
-- A faster version of this function is proposed in
401+
-- https://github.com/purescript/purescript-ordered-collections/issues/50
400402
annotateSet :: forall a b. Ord a => (a -> b) -> Set a -> Map a b
401403
annotateSet f = mapWithIndex (\k _ -> f k) <<< toMap
402404

0 commit comments

Comments
 (0)