Mercurial > hg > Database > jungle-sharp
view src/test/csharp/jp.ac.u-ryukyu.ie.cr/junge-main/data/list/replaceTest.cs @ 17:01a08cf4b2d9
Liq Files
author | Kazuma |
---|---|
date | Mon, 07 Nov 2016 01:05:24 +0900 |
parents | b71d9ea6bd8e |
children |
line wrap: on
line source
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); } }