summaryrefslogtreecommitdiff
path: root/lib/std/slfill.myr
blob: d09502f5d6087bb861537c6ad1286d9c93edd370 (plain)
1
2
3
4
5
6
7
8
9
10
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
}