Mercurial > hg > Database > jungle-sharp
comparison src/test/csharp/jp.ac.u-ryukyu.ie.cr/data/list/replaceTest.cs @ 7:02b2ab7bffe6
fix
author | Kazuma |
---|---|
date | Tue, 27 Sep 2016 18:36:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5:0428c8888abf | 7:02b2ab7bffe6 |
---|---|
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 } |