comparison src/test/csharp/jp.ac.u-ryukyu.ie.cr/junge-main/data/list/replaceTest.cs @ 12:b71d9ea6bd8e

Add Network Operation Class. this codes can not test yet.
author Kazuma
date Sun, 23 Oct 2016 12:25:57 +0900
parents
children
comparison
equal deleted inserted replaced
11:220433691c2e 12:b71d9ea6bd8e
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 }