Haskell pattern matching char in a string

前端 未结 4 1298
甜味超标
甜味超标 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:50

    You can do this kind of pattern matching similar to the way proposed here:

    Haskell pattern matching conundrum

提交回复
热议问题