With prelude.ls in livescript, when I run repeat 4 'a'
, it gives me repeat is not defined
, all other function works fine. Encountering the same problem on livescript.net, I guess I missed something simple, what is it?
Asked
Active
Viewed 156 times
1

muyueh
- 1,018
- 13
- 16
1 Answers
2
You have to use Str.repeat
at the moment. This might change for a future version.

gkz
- 416
- 3
- 5
-
For future reference it's: `{Str} = require "prelude-ls"` and `Str.repeat 3 "a" |> console.log` – muyueh Mar 07 '14 at 02:24