diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-10-01 15:25:11 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-10-01 15:25:21 -0700 |
| commit | 1a3137a210f7886677c6672c26081152318252a3 (patch) | |
| tree | f5ab5f3dc300b191a0a6f1452c387423e4be0d26 | |
| parent | 0c982d2aa285e6c095470667c1d0c21999ddad58 (diff) | |
Fixed some misnamed functions.
| -rw-r--r-- | containers.lua | 6 | ||||
| -rw-r--r-- | containers.moon | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/containers.lua b/containers.lua index b51b133..ab8647e 100644 --- a/containers.lua +++ b/containers.lua @@ -399,7 +399,7 @@ do return List(lines(self)) end, line_1 = line, - wrap_to_1 = function(self, maxlen) + wrapped_to_1 = function(self, maxlen) local _lines = { } local _list_0 = self:lines() for _index_0 = 1, #_list_0 do @@ -418,10 +418,10 @@ do line_at_1 = function(self, i) return (line_at(self, i)) end, - line_number_of_1 = function(self, i) + line_number_at_1 = function(self, i) return select(2, line_at(self, i)) end, - line_position_of_1 = function(self, i) + line_position_at_1 = function(self, i) return select(3, line_at(self, i)) end, matches_1 = function(self, patt) diff --git a/containers.moon b/containers.moon index 0fb9271..1b0e650 100644 --- a/containers.moon +++ b/containers.moon @@ -153,7 +153,7 @@ do bytes: => List{byte(tostring(@), 1, -1)}, lines: => List(lines(@)) line_1: line - wrap_to_1: (maxlen)=> + wrapped_to_1: (maxlen)=> _lines = {} for line in *@lines! while #line > maxlen @@ -166,8 +166,8 @@ do return table.concat(_lines, "\n") line_at_1: (i)=> (line_at(@, i)) - line_number_of_1: (i)=> select(2, line_at(@, i)) - line_position_of_1: (i)=> select(3, line_at(@, i)) + line_number_at_1: (i)=> select(2, line_at(@, i)) + line_position_at_1: (i)=> select(3, line_at(@, i)) matches_1: (patt)=> match(@, patt) and true or false matching_1: (patt)=> (match(@, patt)) matching_groups_1: (patt)=> {match(@, patt)} |
