Mercurial > hg > Database > jungle-sharp
annotate Test/junge-main/data/list/replaceTest.cs @ 38:e954d456665c
library is made by rake
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 22 Feb 2017 16:58:10 +0900 |
parents | 9588ad364fdd |
children |
rev | line source |
---|---|
38
e954d456665c
library is made by rake
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
1 // using UnityEngine; |
28 | 2 using JungleDB; |
20 | 3 |
4 public class replaceTest : MonoBehaviour { | |
5 | |
6 // Use this for initialization | |
7 void Start () { | |
8 List<int> list = new List<int> (); | |
9 for (int count = 0; count < 10; count++) { | |
10 list = list.addLast (count); | |
11 Debug.Log("list" + list.tail()); | |
12 } | |
13 List<int> newList = list.replace (5, 15); | |
14 int attribute = list.index (5); | |
15 Debug.Log (attribute); | |
16 attribute = newList.index (5); | |
17 Debug.Log (attribute); | |
18 } | |
19 } |