在livescript中使用prelude.ls,当我运行repeat 4 'a'时,它给了我repeat is not defined,所有其他函数都能正常工作。在livescript.net上遇到同样的问题,我想我错过了一些简单的东西,这是什么?
repeat 4 'a'
repeat is not defined
发布于 2014-03-06 08:05:23
您现在必须使用Str.repeat。对于将来的版本,这种情况可能会发生变化。
Str.repeat
https://stackoverflow.com/questions/22199675
相似问题