RosettaCodeData/Task/Reflection-List-methods/Go/reflection-list-methods-2.go

11 lines
310 B
Go

; lists all built-in and user-defined functions, including those within variables
(-> (symbols)
(map eval)
(filter (comp type-of (= "func"))))
; lists only user-defined functions, including those within variables
(-> (symbols)
(map eval)
(filter (comp type-of (= "func")))
(remove about))