asomiya 0.2.0

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).

AssameseEnglish lettersWhat it does
দৈৰ্ঘ্য(x)doirghyo, dairghya, doirghoLength of text (in letters) or of a list.
প্ৰকাৰ(x)prokar, prakarThe type of a value, as text.
সংখ্যা(x)xonkhya, sonkhya, sankhya, xongkhyaText → number. Gives খালী if the text isn’t a number.
পাঠ(x)path, paathAny value → text.
পূৰ্ণাংক(x)purnanko, purnanka, purnankDrops the decimal part (towards zero).
সংযোজন(list, x)xonjojon, sonjojon, sanjojanAdds x to the end of a list.
সোধা(question?)xudha, sudha, xodha, sodhaShows 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.