Fix Comment "Actual Functions" after tree function
This commit is contained in:
parent
70e2149f81
commit
5eda85952e
1 changed files with 4 additions and 4 deletions
|
@ -10,6 +10,10 @@ match_all = (str, pat, init=0) ->
|
||||||
return str\sub(s,e), match_all(str, pat, e+1)
|
return str\sub(s,e), match_all(str, pat, e+1)
|
||||||
match_lines = (str) -> match_all(str, '[^\n]+')
|
match_lines = (str) -> match_all(str, '[^\n]+')
|
||||||
|
|
||||||
|
-- ┌──────────────────┐
|
||||||
|
-- │ Actual Functions │
|
||||||
|
-- └──────────────────┘
|
||||||
|
|
||||||
tree = (tab, pref='') ->
|
tree = (tab, pref='') ->
|
||||||
print tab.title and tab.title or '┐'
|
print tab.title and tab.title or '┐'
|
||||||
|
|
||||||
|
@ -27,10 +31,6 @@ tree = (tab, pref='') ->
|
||||||
pad = (str='', len) ->
|
pad = (str='', len) ->
|
||||||
str..string.rep(" ", len-#str)
|
str..string.rep(" ", len-#str)
|
||||||
|
|
||||||
-- ┌──────────────────┐
|
|
||||||
-- │ Actual Functions │
|
|
||||||
-- └──────────────────┘
|
|
||||||
|
|
||||||
import max from math
|
import max from math
|
||||||
|
|
||||||
chktbl = (obj) -> error("Object is not a table", 2) if type(obj) ~= 'table'
|
chktbl = (obj) -> error("Object is not a table", 2) if type(obj) ~= 'table'
|
||||||
|
|
Loading…
Reference in a new issue