Mercurial > hg > Database > jungle-sharp
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Test/junge-main/data/list/replaceTest.cs Thu Dec 15 22:52:48 2016 +0900 @@ -0,0 +1,18 @@ +using UnityEngine; + +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); + } +}