Built-in functions
Built-in functions are always available. Unlike keywords, they are ordinary names: you can create your own variable with the same name inside a block, but you can’t reassign them (R020).
| Assamese | English letters | What it does |
|---|---|---|
দৈৰ্ঘ্য(x) | doirghyo, dairghya, doirgho | Length of text (in letters) or of a list. |
প্ৰকাৰ(x) | prokar, prakar | The type of a value, as text. |
সংখ্যা(x) | xonkhya, sonkhya, sankhya, xongkhya | Text → number. Gives খালী if the text isn’t a number. |
পাঠ(x) | path, paath | Any value → text. |
পূৰ্ণাংক(x) | purnanko, purnanka, purnank | Drops the decimal part (towards zero). |
সংযোজন(list, x) | xonjojon, sonjojon, sanjojan | Adds x to the end of a list. |
সোধা(question?) | xudha, sudha, xodha, sodha | Shows the question and reads one line of input. |
Examples
ধৰা ল = [১, ২]
সংযোজন(ল, ৩)
কোৱা(দৈৰ্ঘ্য(ল), দৈৰ্ঘ্য("অসম"), প্ৰকাৰ(ল))
কোৱা(সংখ্যা("৪২") + ১, সংখ্যা("অসম"))
কোৱা(পাঠ(৭) + "!", পূৰ্ণাংক(-৩.৭))
Output
৩ ৩ তালিকা ৪৩ খালী ৭! -৩
dhora l = [1, 2]
xonjojon(l, 3)
kowa(doirghyo(l), doirghyo("Oxom"), prokar(l))
kowa(xonkhya("42") + 1, xonkhya("Oxom"))
kowa(path(7) + "!", purnanko(-3.7))
Output
3 4 talika 43 khali 7! -3
কোৱা (print)
কোৱা is a keyword, not a function, but you call it the same way. It prints its values separated by spaces, then a new line. কোৱা() prints an empty line.