Changeset 450 for branches/thune/thread_safe/doc/UserManual
- Timestamp:
- 08/11/07 04:53:46 (16 months ago)
- Files:
-
- 1 modified
-
branches/thune/thread_safe/doc/UserManual (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/thune/thread_safe/doc/UserManual
r432 r450 89 89 set-select! :obj/x :my-block/2 90 90 lit-select! 'obj/x 'my-block/2 91 slice!92 91 time! 10:02 -0:0:32.08 93 92 context! … … 125 124 126 125 126 Binary 127 ------ 128 129 A binary value references a series of bytes. 130 131 :: 132 133 #{0000ff01} 134 #{0000 ff01} 135 #{68656C6C6F} ; "hello" as binary 136 137 127 138 Strings 128 139 ------- … … 138 149 {This string 139 150 spans multiple lines.} 140 141 142 Slice143 -----144 145 A range within a binary!, string!, or block! can be represented with a slice.146 147 ::148 149 "Hello world" :s150 slice! s make . ; "Hello world"151 slice! s next dup 4 skip make . ; "ello"152 153 To move the start of the slice use *prev* & *next*, as with a series.154 To move the end of the slice use *slice.prev* & *slice.next*.155 151 156 152 … … 455 451 next (ser -- ser) Increment start of series. 456 452 skip (ser n -- ser) Increment start of series by **n**. 453 slice_ (ser end -- slice) Slice series. 454 slice? (ser end -- slice) True if series is a slice. 457 455 slice.prev (slice -- slice) Decrement end of slice. 458 456 slice.next (slice -- slice) Increment end of slice. … … 631 629 632 630 631 slice 632 ----- 633 634 The slice word is used to control the slice range of a series value. 635 636 :: 637 638 "Hello world" :s 639 s 2,6 slice . ; "ello" 640 s -2 slice . ; ""Hello wor" 641 642 643 To move the start of a series by one, use *prev* & *next*. 644 To move the end of a series by one, use *slice.prev* & *slice.next*. 645 646 633 647 change 634 648 ------
