shithub: mc

ref: f16bf0e4f8dd5f23b41cfbfa6c24fd0ab79e6dad
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
}