JoelSjogren icon

Untitled

JoelSjogren | PRO | 06/14/20 02:58:09 PM UTC | 0 ⭐ | 14300 πŸ‘οΈ | Never ⏰ | []
Haskell |

180 B

|

None

|

0 πŸ‘

/

0 πŸ‘Ž

data Tree a = Leaf a | Branch (Tree a) (Tree a)
Β 
unit :: a -> Tree a
unit = Leaf
Β 
join :: Tree (Tree a) -> Tree a
join (Leaf a) = a
join (Branch r s) = Branch (join r) (join s)

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž