Not really. You might want to look into “ Purely functional data structures” by Chris Okazaki.