User Tools

Site Tools


codesnippets:datastructuresfromsymboltrees

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
codesnippets:datastructuresfromsymboltrees [2021/04/13 02:44] f2b216codesnippets:datastructuresfromsymboltrees [2025/10/08 00:48] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Creating data structures from symbol trees ====== ====== Creating data structures from symbol trees ======
-~~DISCUSSION~~ 
  
   * example   * example
Line 271: Line 270:
 cmbnFast :: (Builder g, Builder a) => (g -> a -> g) -> g -> [SymbolTree] -> Construction g cmbnFast :: (Builder g, Builder a) => (g -> a -> g) -> g -> [SymbolTree] -> Construction g
 cmbnFast fOp identity ltrSym = Fld.foldlM (fLOpFromSymTree fOp) identity ltrSym cmbnFast fOp identity ltrSym = Fld.foldlM (fLOpFromSymTree fOp) identity ltrSym
 +</code>
 +    * compiles, error and warning free, with compiler: GHC 8.10.4, using -Wall
 +    * executes, with output:<code>
 +Contains (Simply {rSimply = "nMyConst3331331331137"})
 +Contains (ConstDef {rsConstName = "nMyConst", rnConstValue = 166359})
 </code> </code>
  
 +
 +===== ✎ =====
 +~~DISCUSSION~~
codesnippets/datastructuresfromsymboltrees.1618274667.txt.gz · Last modified: (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki