☰
Debian Codegraph
@
1.5.5.8-1
/
/
examples
/
book
/
digital-artists
/
chapter1
/
Listing1.7Shorthand.ck
☽
☼
examples/book/digital-artists/chapter1/Listing1.7Shorthand.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// shorthand math with integers
2
220 => int myPitch;
3
4
// multiply by 2, in-place
5
2 *=> myPitch; // "times ChucK"
6
7
// in-place subtraction
8
110 -=> myPitch; // "minus ChucK"
9
10
<<< myPitch >>>;