Char to string function

前端 未结 4 388
感情败类
感情败类 2021-01-03 18:30

I have a very simple question: Given a function accepting a char and returning a string

test :: Char -> [String]

how can one convert the

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 19:13

    Another way would be using

    return . return
    

    Since return for lists is defined as :[]

提交回复
热议问题