1

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?

muyueh
  • 1,018
  • 13
  • 16

1 Answers1

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