K (depending on generation) has around 20 built-in verbs. A complication is that they typically have multiple meanings, depending on both context and arity. Indeed, a significant part of the effort required to learn to read k is to be able to recognise the overloaded meanings of verbs and adverbs depending on context.
What is a verb? In other languages, much of the functionality that hides behind k's verbs (and adverbs) tend to be functions residing in various libraries. Indeed, in Python you'd probably need at least half a dozen import
statements to match k's built-in verbs and adverbs. It follows that instead of thinking of k as a language with no libraries, you can think of it as a tiny language providing an extremely compact way of accessing a very complete standard library.
ngn/k
has 22 built-in verbs: : + - * % ! & | < > = ~ , ^ # _ $ ? @ . 0: 1:
, most of which have both monadic and dyadic versions, and occasionally different meanings depending on the types of arguments. Thi