Tree traversal: Difference between revisions
Content deleted Content added
m →{{header|REBOL}}: renamed second and third with left and right |
|||
Line 5,332:
{{Trans|Python}}
<
---------------------- TREE TRAVERSAL --------------------
Line 5,424:
justifyLeft, justifyRight :: Int -> Char -> String -> String
justifyLeft n c s = take n (s <> replicate n c)
justifyRight n c = (drop . length) <*> (replicate n c <>)</
<pre>1
|
|