view Test/junge-main/data/list/replaceTest.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 JungleDB;

public class replaceTest : MonoBehaviour {

	// Use this for initialization
	void Start () {
		List<int> list = new List<int> ();
		for (int count = 0; count < 10; count++) {
			list = list.addLast (count);
            Debug.Log("list" + list.tail());
		}
		List<int> newList = list.replace (5, 15);
		int attribute = list.index (5);
		Debug.Log (attribute);
		attribute = newList.index (5);
		Debug.Log (attribute);
	}
}