shithub: mc

ref: d42f32137f5a59e229b6b0e086e9b2502f5c729d
dir: /lib/std/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
}