comparison Test/junge-main/data/list/replaceTest.cs @ 20:1f99e150f336

fix folder and add Object Mapper.
author Kazuma Takeda
date Thu, 15 Dec 2016 22:52:48 +0900
parents
children 9588ad364fdd
comparison
equal deleted inserted replaced
19:0865819106cf 20:1f99e150f336
1 using UnityEngine;
2
3 public class replaceTest : MonoBehaviour {
4
5 // Use this for initialization
6 void Start () {
7 List<int> list = new List<int> ();
8 for (int count = 0; count < 10; count++) {
9 list = list.addLast (count);
10 Debug.Log("list" + list.tail());
11 }
12 List<int> newList = list.replace (5, 15);
13 int attribute = list.index (5);
14 Debug.Log (attribute);
15 attribute = newList.index (5);
16 Debug.Log (attribute);
17 }
18 }