Fix Comment "Actual Functions" after tree function

This commit is contained in:
Talia 2018-08-15 10:56:22 +02:00
parent 70e2149f81
commit 5eda85952e

View file

@ -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'