1 // Generated by LiveScript 1.6.0
2 var split, join, lines, unlines, words, unwords, chars, unchars, reverse, repeat, capitalize, camelize, dasherize;
3 split = curry$(function(sep, str){
6 join = curry$(function(sep, xs){
13 return str.split('\n');
15 unlines = function(it){
18 words = function(str){
22 return str.split(/[ ]+/);
24 unwords = function(it){
30 unchars = function(it){
33 reverse = function(str){
34 return str.split('').reverse().join('');
36 repeat = curry$(function(n, str){
39 for (i$ = 0; i$ < n; ++i$) {
44 capitalize = function(str){
45 return str.charAt(0).toUpperCase() + str.slice(1);
47 camelize = function(it){
48 return it.replace(/[-_]+(.)?/g, function(arg$, c){
49 return (c != null ? c : '').toUpperCase();
52 dasherize = function(str){
53 return str.replace(/([^-A-Z])([A-Z]+)/g, function(arg$, lower, upper){
54 return lower + "-" + (upper.length > 1
56 : upper.toLowerCase());
57 }).replace(/^([A-Z]+)/, function(arg$, upper){
58 if (upper.length > 1) {
61 return upper.toLowerCase();
76 capitalize: capitalize,
80 function curry$(f, bound){
82 _curry = function(args) {
83 return f.length > 1 ? function(){
84 var params = args ? args.concat() : [];
85 context = bound ? context || this : this;
86 return params.push.apply(params, arguments) <
87 f.length && arguments.length ?
88 _curry.call(context, params) : f.apply(context, params);