From 3c28145372082b63ffc9b813a834eea191b380ee Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Mon, 30 Jan 2017 22:02:19 +0530 Subject: [PATCH] lazy function views --- src/base/base.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/base.jl b/src/base/base.jl index 19c034e..062cf76 100644 --- a/src/base/base.jl +++ b/src/base/base.jl @@ -76,8 +76,8 @@ isanon(f) = contains(string(f), "#") @render Inline f::Function begin isanon(f) ? span(".syntax--support.syntax--function", "λ") : - Tree(span(".syntax--support.syntax--function", string(typeof(f).name.mt.name)), - [(Atom.CodeTools.hasdoc(f) ? [doc(f)] : [])..., methods(f)]) + LazyTree(span(".syntax--support.syntax--function", string(typeof(f).name.mt.name)), + ()->[(Atom.CodeTools.hasdoc(f) ? [doc(f)] : [])..., methods(f)]) end # TODO: lazy load a recursive tree