view Test/junge-main/data/list/deleteTest.cs @ 41:bd44baa491a9 default tip

add TestJungleCore.cs
author Kazuma Takeda
date Thu, 23 Feb 2017 17:19:55 +0900
parents e954d456665c
children
line wrap: on
line source

// using UnityEngine;
using System.Collections;
using JungleDB;
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 ());
	}
}