kin-lang / kin

The Kin Programming Language ( Write computer programs in Kinyarwanda - native language for Rwandans )
https://kinlang.dev
MIT License
209 stars 11 forks source link

feat(in-built): array methods: shift and unshift #84

Closed pacifiquem closed 8 months ago

pacifiquem commented 8 months ago

KIN_URUTONDE.injiza_ahabanza(arr, value) and KIN_URUTONDE.siba_ahabanza(arr) are both array methods to add or delete an element at the beginning of an array.

they're not mutators, they just return new value, changes are not reflected to the original array.