홈 › Components › Ordered List (정렬 리스트) › 화면 6
화면 6. Ordered List.initialOrder [sink]
원본: Computation Layer 문서(Ordered List (정렬 리스트)) · Try It (원본 화면)
| 화면 번호 | 6 / 11 |
|---|---|
| 문서 항목 설명 (원문) | initialOrder Takes a numberList of where each item should start. Accepts any numberList as an order (with ties leaving two items in order). For example, [3, 1, 2] would mean that the first authored item would go in the last slot, the 2nd in the first slot, and the 3rd in the middle slot. [.25, 0, .25] would mean that the 2nd item goes first, the 1st goes right after, and the 3rd stays 3rd. As soon as a student reorders, the response is locked in and this sink is ignored. |
1. 화면 캡처 (빨간 번호 = 아래 표의 번호)
- Amoeba Ladybug Puppy
2. CL이 입력된 곳
| 번호 | 이름 | 종류 | CL 코드 원문, 번역, 설명 |
|---|---|---|---|
| 1 | graph1 | 그래프 | # Create a numberList using the order of the # items in the component. ▷ 구성요소 안 항목들의 순서로 숫자배열(numberList)을 만든다. numberList("L"): order1.order ▶ 그래프의 숫자배열 L은 정렬 리스트 order1에서 각 항목의 현재 위치를 나타내는 숫자배열( |
| 2 | order1 | 정렬 리스트 | # This code sets the initial order of the component # using the numeric value at each element of the list # i_{ndex} in the graph ▷ 이 코드는 그래프의 배열(List) i_{ndex}에 있는 각 값을 써서 구성요소의 처음 순서를 정한다. initialOrder: graph1.numberList("i_{nitial}") ▶ 정렬 리스트의 처음 순서(initialOrder)는 그래프 graph1의 변수 i_{nitial}에 정해진 숫자배열( |