Machine Lines

Basic Bits

Programming languages usually give you many kinds of objects to work with, like numbers, strings and dictionaries. Raven kind-of only has one, called the “pack”: raven> p = pack(3, 5, 7) pack(3, 5, 7) Packs are primitive tuples that we can build with the pack(...) function and index with part (which starts at zero). raven> part(p, 1) 5 I said that packs are Raven’s only kind of object, but of course that’s only true in a smart-alec sort of way; Raven has things like strings, complex numbers and the integers as I’m using above.
This post is for my sponsors. If you're already signed up, log in for access.