I downloaded prelude.js
and added it in my application. I linked the js file in my html file in the following way:
<script type="text/javascript" src="prelude-browser-min.js"></script>
I didn't link any dependent file in my html file. I opened the browser console and ran the following code, which is not working:
tail [1 to 5]
It looks like I'm not able to see the prelude function.
So do I need to add any other file in my html headers ? What am I doing wrong ?
That's livescript syntax, but if you want to use vanilla js; here's a jsfiddle setup.
var prelude = require('prelude-ls')
tail = prelude.tail([1,2,3,4,5])
console.log(tail);