extracts documentation from functions for REPL and doc-compiling fun
Adds 'docstring' style comments to functions, accessible programmatically.
var doc =var inc =console/* console output:signature: number -> numbertakes a number, and returns that number + 1*/
mutates a function to add a doc property, which includes all comments starting with
/// at the top of a function.
Also adds a .docs property, containing a map of 'section names' to 'vals', for every line with the format '/// section name: value'.
var inc =console/* console output:signature: number -> numbertakes a number, and returns that number + 1*/console// console output: number -> number
adds a getter to put the .doc property on all inhereting functions
doc // adds .doc to all functions
npm install doc-fn