Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

[Haskell-cafe] ByteString intercalate semantics??

Galchin, Vasili

13 Jan 2009 13 Jan '09
5:12 p.m.

Hello, From Hoogle (my friend) .... *intercalate* :: ByteStringhttp://hackage.haskell.org/packages/archive/bytestring/0.9.1.4/doc/html/Data...-> [ ByteStringhttp://hackage.haskell.org/packages/archive/bytestring/0.9.1.4/doc/html/Data...] -> ByteStringhttp://hackage.haskell.org/packages/archive/bytestring/0.9.1.4/doc/html/Data... Sourcehttp://hackage.haskell.org/packages/archive/bytestring/0.9.1.4/doc/html/src/... *O(n)* The intercalatehttp://hackage.haskell.org/packages/archive/bytestring/0.9.1.4/doc/html/Data...function takes a ByteStringhttp://hackage.haskell.org/packages/archive/bytestring/0.9.1.4/doc/html/Data...and a list of ByteStringhttp://hackage.haskell.org/packages/archive/bytestring/0.9.1.4/doc/html/Data...s and concatenates the list after interspersing the first argument between each element of the list. So intercalate doesn't do a simple concatenation? Vasili

Attachments:

  • attachment.html (text/html — 1.5 KB)
0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.9.