1[
2 {"type":"Comment","value":"% a sum function"},
3 {"type":"Text","value":"\n"},
4 {"type":"Keyword","value":"function"},
5 {"type":"TextWhitespace","value":" "},
6 {"type":"Text","value":"p "},
7 {"type":"Punctuation","value":"="},
8 {"type":"TextWhitespace","value":" "},
9 {"type":"NameFunction","value":"vector_sum"},
10 {"type":"Punctuation","value":"("},
11 {"type":"Text","value":"x"},
12 {"type":"Punctuation","value":")"},
13 {"type":"TextWhitespace","value":"\n"},
14 {"type":"Name","value":"p"},
15 {"type":"Text","value":" "},
16 {"type":"Punctuation","value":"="},
17 {"type":"Text","value":" "},
18 {"type":"LiteralNumberInteger","value":"0"},
19 {"type":"Punctuation","value":";"},
20 {"type":"Text","value":"\n"},
21 {"type":"Keyword","value":"for"},
22 {"type":"Text","value":" "},
23 {"type":"Name","value":"k1"},
24 {"type":"Text","value":" "},
25 {"type":"Punctuation","value":"="},
26 {"type":"Text","value":" "},
27 {"type":"LiteralNumberInteger","value":"1"},
28 {"type":"Punctuation","value":":"},
29 {"type":"NameBuiltin","value":"length"},
30 {"type":"Punctuation","value":"("},
31 {"type":"Name","value":"x"},
32 {"type":"Punctuation","value":")"},
33 {"type":"Text","value":"\n "},
34 {"type":"Name","value":"p"},
35 {"type":"Text","value":" "},
36 {"type":"Punctuation","value":"="},
37 {"type":"Text","value":" "},
38 {"type":"Name","value":"p"},
39 {"type":"Text","value":" "},
40 {"type":"Operator","value":"+"},
41 {"type":"Text","value":" "},
42 {"type":"Name","value":"x"},
43 {"type":"Punctuation","value":"("},
44 {"type":"Name","value":"k1"},
45 {"type":"Punctuation","value":");"},
46 {"type":"Text","value":"\n"},
47 {"type":"Keyword","value":"end"},
48 {"type":"Text","value":"\n"},
49 {"type":"Keyword","value":"end"},
50 {"type":"Text","value":"\n\n"},
51 {"type":"Name","value":"z"},
52 {"type":"Text","value":" "},
53 {"type":"Punctuation","value":"="},
54 {"type":"Text","value":" "},
55 {"type":"LiteralNumberInteger","value":"1"},
56 {"type":"Punctuation","value":":"},
57 {"type":"LiteralNumberInteger","value":"10"},
58 {"type":"Punctuation","value":";"},
59 {"type":"Text","value":"\n"},
60 {"type":"Name","value":"sum_from_1_to_10"},
61 {"type":"Text","value":" "},
62 {"type":"Punctuation","value":"="},
63 {"type":"Text","value":" "},
64 {"type":"Name","value":"vector_sum"},
65 {"type":"Punctuation","value":"("},
66 {"type":"Name","value":"z"},
67 {"type":"Punctuation","value":")"},
68 {"type":"Text","value":"\n"}
69]
View as plain text