Re:Functional Data Structures
by vajrabum on Wednesday June 20, 2018 @10:27AM
(#17355689)
The approach presented here was largely invented by Chris Osaki which isn't mentioned in that set of notes at least not in the first few pages. Here's a link to his dissertation which covers much of the same material. That plus more can be found in his book under the name Purely Functional Data Structures. https://www.cs.cmu.edu/~rwh/theses/okasaki.pdf
Re:Functional Data Structures
by signa11 on Wednesday June 20, 2018 @08:20AM
(#17354657)
ah yes the _classic_ ! i was kind of pleasantly surprised to see 'pragmatically' functional OCaml used for exposition, and thought of posting here for more insightful discussion :)
Re:Functional Data Structures
by andrepd on Wednesday June 20, 2018 @12:00PM
(#17356579)
Great to see OCaml featured here. Such a neat little language, combining functional programming with a healthy pragmatism in supporting imperative constructs with no fuss.
Re:Functional Data Structures
by johnsonjo on Wednesday June 20, 2018 @12:13PM
(#17356721)
I know you found an exact answer, but I thought I’d give an alternative. You could do this or something similar with pandoc [1] and a make file. I tend to write my files in markdown run a makefile that concatenates them and converts them with pandoc to pdf, html, or docx.
Re:Functional Data Structures
by jlg23 on Wednesday June 20, 2018 @02:48PM
(#17358433)
IMO every programming language definition should also define how documentation strings are associated to syntactical constructs and how they can be accessed programmatically.
https://github.com/mmottl/pure-fun
[1]: http://pandoc.org