Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/String-length/Haskell/string-length-1.hs
Normal file
11
Task/String-length/Haskell/string-length-1.hs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import Data.Encoding
|
||||
import Data.ByteString as B
|
||||
|
||||
strUTF8 :: ByteString
|
||||
strUTF8 = encode UTF8 "Hello World!"
|
||||
|
||||
strUTF32 :: ByteString
|
||||
strUTF32 = encode UTF32 "Hello World!"
|
||||
|
||||
strlenUTF8 = B.length strUTF8
|
||||
strlenUTF32 = B.length strUTF32
|
||||
Loading…
Add table
Add a link
Reference in a new issue