shithub: mc

ref: ee4f263f0c410a8e1061ff704054f8707cb0cb0c
dir: /libstd/slfill.myr/

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

generic slfill = {sl, v
	var i

	for i = 0; i < sl.len; i++
		sl[i] = v
	;;
	-> sl
}