shithub: mc

ref: 3699a6c3daf7648653b3e4936f39bc6061331446
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
}