[Distel-hackers] new module
Status: Beta
Brought to you by:
lukeg
From: Mats C. <mat...@kr...> - 2008-03-11 19:45:47
|
fyi, as part of my quest to be able to read the OTP docs in emacs, i'm checking in a new module. works like this; 1> otp_doc:sig(lis). ["lists:all(Pred, List) -> bool()", "lists:any(Pred, List) -> bool()", "lists:append(List1, List2) -> List3", ...] 2> otp_doc:sig(li,fl). ["lib:flush_receive() -> void()", "lists:flatlength(DeepList) -> int()", "lists:flatmap(Fun, List1) -> List2", "lists:flatten(DeepList, Tail) -> List", "lists:flatten(DeepList) -> List"] 3> otp_doc:sig(li,fl,2). ["lists:flatmap(Fun, List1) -> List2", "lists:flatten(DeepList, Tail) -> List"] i.e. it returns a list of the signatures of the functions that are prefixed with the input MFA. it's not hooked up to emacs yet, but it's still pretty useful. mats |