Jump to content

Haskell - quick question

- - - - -

  • Please log in to reply
No replies to this topic

#1
a-z-z

a-z-z

    Newbie

  • Members
  • PipPip
  • 11 posts
ok,

bpic 1 is of type [String]...

I want to concatenate the head string, to the end of the tail of strings.

The command:

(++) (tail (bpic 1)) (head (bpic 1))

is not working... I get this:

ERROR - Type error in application
*** Expression : tail (bpic 1) ++ head (bpic 1)
*** Term : tail (bpic 1)
*** Type : [[Char]]
*** Does not match : [Char]

Any help?

a-z-z




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users