shithub: mc

ref: 8f2b7470799a4851a5f73e8566b18823c7fe72df
dir: /test/stdslcp.myr/

View raw version
use std

const main = {
	var a = [1,2,3,4,5]
	var b = [6,7,8,9,10]
	

	std.slcp(a[:a.len-2], a[2:])
	std.slcp(b[2:], b[:b.len-2])

	for x in a
		std.put("%i ", x)
	;;
	std.put("\n")
	for x in b
		std.put("%i ", x)
	;;
	std.put("\n")
}