Element - ḭ
- Floor Division
Characters:
ḭ
Description
Floor divide a by b
Overloads
num-num
-a // b (floor division, floor(a / b))
str-num
-(a divided into b pieces)[0]
num-str
-(b divided into a pieces)[0]
any-fun
-right reduce a by b (foldr)
fun-any
-right reduce b by a (foldr)
Examples
5 3 ḭ
=1
5 -3 ḭ
=-2
-5 3 ḭ
=-2
`hello!` 3 ḭ
=`he`
3 `hello!` ḭ
=`he`
`abcde` 3 ḭ
=`ab`
`abcd` 3 ḭ
=`ab`
`a` 3 ḭ
=`a`