RosettaCodeData/Task/Parametric-polymorphism/F-Sharp/parametric-polymorphism-2.fs

3 lines
102 B
Forth
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
let t1 = Tree(2, Element(1), Tree(4,Element(3),Element(5)) )
let t2 = t1.Map(fun x -> x * 10)