Example #1
0
 def to_functional2(self, wr: FunctionalWriter) -> FunctionalWriter:
     return wr.hardbr().indent().iter(self.v).outdent()
Example #2
0
 def to_functional(self, wr: FunctionalWriter) -> FunctionalWriter:
     return wr.iter(self.v, f=lambda e:  wr.hardbr() + e)