File: operators.subscript.assign.styl

package info (click to toggle)
node-stylus 0.48.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,196 kB
  • ctags: 766
  • sloc: makefile: 38
file content (45 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
list = 1 2
list[0] = foo
list[4] = 'test'

body {
  foo: list;
  foo: list[0];
  foo: list[1];
  foo: list[2] == null;
  foo: list[3] == null;
  foo: list[4] == 'test';
  foo: length(list);
}


body {
  list = 1 2
  list[0] = foo
  list[1..3] = 'one'
  foo: list;
}

body {
  list = 1
  list[4..5] = 'two';
  foo: list;
}

fn(list)
  list[2] = asdf
  list[3] = 'three'
  list

body {
  foo: fn(1 2 3);
}

fn()
  arguments[2] = asdf
  arguments[3] = 'three'
  arguments

body {
  foo: fn(1 2 3);
}