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 /containers.moon | |
| parent | 0c982d2aa285e6c095470667c1d0c21999ddad58 (diff) | |
Fixed some misnamed functions.
Diffstat (limited to 'containers.moon')
| -rw-r--r-- | containers.moon | 6 |
1 files changed, 3 insertions, 3 deletions
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)} |
