How can I determine a variable's type in a vim function? -


is there way check type of variable in vim? need check make sure functions argument number , not sure how go it.

you're looking type(varname).

note explicit type checks of code smell (especially because exact implicit type conversions done vim not known); though have admit make nice , short function interface.


Comments