view Test/junge-main/data/list/deleteTest.cs @ 20:1f99e150f336

fix folder and add Object Mapper.
author Kazuma Takeda
date Thu, 15 Dec 2016 22:52:48 +0900
parents
children 9588ad364fdd
line wrap: on
line source

using UnityEngine;
using System.Collections;

public class deleteTest : MonoBehaviour {

	void Start () {
		List<int> list = new List<int>();

		for(int count = 0; count < 10; count++){
			list = list.addLast(count);
		}
		List<int> newList = list.delete(5);
		Debug.Log(list.getHead().length());
		Debug.Log (newList.getHead ().length ());
	}
}