Skip to content

Commit 03b759e

Browse files
committed
referencing Data.String.CodePoints.kength from Data.String.CodeUnits.length
1 parent 59f3692 commit 03b759e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Data/String/CodeUnits.purs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ uncons s = Just { head: U.charAt zero s, tail: drop one s }
145145
-- |
146146
-- | ```purescript
147147
-- | length "Hello World" == 11
148+
-- |
149+
-- | length "𝐀A" == 3
150+
-- | -- compare to Data.String.CodePoints:
151+
-- | length "𝐀A" == 2
148152
-- | ```
149153
-- |
150154
foreign import length :: String -> Int

0 commit comments

Comments
 (0)