Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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
|
||||
1
Task/String-length/Haskell/string-length-2.hs
Normal file
1
Task/String-length/Haskell/string-length-2.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
strlen = length "Hello, world!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue