shithub: mc

ref: 16b894430a5b71f4956ee305229bbbffd13605d0
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
}