shithub: mc

ref: 90d9a10c0234f5868c2e86882aae72fc931d53fd
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
}