Reflection/List methods: Difference between revisions
→Insitux: implementation
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(→Insitux: implementation) |
||
Line 378:
Sub func(image.Point, image.Point) image.Point func(image.Point) image.Point
</pre>
=={{Header|Insitux}}==
Insitux does not have classes and therefore technically does not have methods. However, it is possible to list all the functions in global lexical space:
<syntaxhighlight lang="insitux">
; 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))
</syntaxhighlight>
=={{header|J}}==
|