Haskell pattern matching char in a string

前端 未结 4 1264
甜味超标
甜味超标 2021-01-13 18:08

I have a question on pattern matching:

Is it possible to somehow match a (string ++ [char] ++ anotherstring)?

I have tried something like:

f          


        
4条回答
  •  逝去的感伤
    2021-01-13 18:47

    No it is not possible. There are many functions in split which you can use to accomplish what you are trying to do.

提交回复
热议问题