mutual-recursion Questions
3
Solved
I'm building an expression tree using discriminated unions. The below code:
type IntExpression =
| TrueIsOne of BoolExpression
type BoolExpression =
| LessThan of IntExpression * IntExpression
...
Burushaski asked 22/7, 2010 at 12:43
3
Solved
These languages do not support mutually recursive functions optimization 'natively', so I guess it must be trampoline or.. heh.. rewriting as a loop) Do I miss something?
UPDATE: It seems that I d...
Amazing asked 9/5, 2010 at 19:16
3
Solved
I stumbled across this problem in F#. Suppose, I want to declare two types that reference each other:
type firstType =
| T1 of secondType
//................
type secondType =
| T1 of firstTy...
Persas asked 4/9, 2009 at 11:5
1
I've been through my books, and I've googled until I've ran out of search terms, yet I still can't find an example or answer to this problem:
The following code does not compile because the type E...
Tagmemics asked 11/5, 2009 at 15:14
© 2022 - 2024 — McMap. All rights reserved.