OCaml
Binary tree error
Learning
vrotaru
October 15, 2017, 11:38am
2
I can only agree with the compiler. Try replacing
(f(f))
with
(fun x -> f (f x))
show post in topic
Related topics
Topic
Replies
Views
Activity
Odd Error: This expression has type int tree/1919
Learning
4
1772
February 26, 2018
Function same_shape (t1 : 'a tree) (t2 : 'b tree) gets compiled to same_shape : 'a tree -> 'a tree -> bool
Learning
8
1084
March 6, 2022
Getting a recursive function to typecheck
Learning
type-system
3
194
July 3, 2024
Composition of two arguments function returning options
Learning
result
9
370
August 29, 2025
Use fold to Convert a tree to a list
Learning
6
6296
February 26, 2018