sac*_*don 2 string haskell split tail
这就是我想要做的:
如果我给 $hello world我,我会得到world
$hello world
world
我在做什么是这样的:
tail (unwords (words "$hello world")) 但我得到了 "hello world"不是world
tail (unwords (words "$hello world"))
"hello world"
为了做到这一点,我该怎么办?
fjh*_*fjh 8
你必须申请unwords后tail,而不是其他方式.
unwords
tail
预期的步骤顺序(可能)如下:
你这样做的方式,你拆分并立即重新加入单词,然后你只需删除结果字符串的第一个字符(因为字符串只是一个字符列表).
归档时间:
13 年,1 月 前
查看次数:
299 次
最近记录: