shithub: mc

ref: 56dffc40e38779981b50628d0c4781255410a357
dir: /lib/std/slfill.myr/

View raw version
pkg std =
	generic slfill	: (sl : @a[:], v : @a	-> @a[:])
;;

generic slfill = {sl, v
	for var i = 0; i < sl.len; i++
		sl[i] = v
	;;
	-> sl
}