Changeset 414 for branches/thune
- Timestamp:
- 06/16/07 22:57:19 (17 months ago)
- Location:
- branches/thune/thread_safe
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/thune/thread_safe/boot.c
r408 r414 96 96 " ser [dup first comb do 1 poke drop] iter\n" 97 97 "] 'loop func :map ;(ser comb -- )\n" 98 "[ser old new | len] [\n" 99 " old length? :len\n" 100 " ser old find if/keep (new len change :ser recurse)\n" 101 " ser\n" 102 "] func :replace.all ;(ser old new -- ser)\n" 98 103 "[reduce to-text console.out] proc :prin ;(val -- )\n" 99 104 "[reduce [first to-text console.out] iter] proc :prin.pack ;(val -- )\n" -
branches/thune/thread_safe/doc/UserManual
r378 r414 374 374 third (ser -- val) Fetch third value in series. 375 375 last (ser -- val) Fetch last value in series. 376 change_ (ser new -- ser) Change series. 377 change_ (ser new part -- ser) Change part of series. 376 378 find (ser pat -- ser) Find pattern in series. 377 379 find.last (ser pat -- ser) Find pattern in series starting from end. … … 384 386 ~~~~~~~~~~~~~~ 385 387 386 ========== ====================== ================= 387 Word Stack Usage Function 388 ========== ====================== ================= 389 empty? (ser -- logic) Same as tail?. 390 appen (ser val -- ) Append and drop. 391 map (ser comb -- ) Transform each element of a series. 392 split-path (full -- path file) Split full path into path & file. 393 dirize (str -- str) Ensure trailing slash is present. 394 ========== ====================== ================= 388 =========== ====================== ================= 389 Word Stack Usage Function 390 =========== ====================== ================= 391 empty? (ser -- logic) Same as tail?. 392 appen (ser val -- ) Append and drop. 393 map (ser comb -- ) Transform each element of a series. 394 split-path (full -- path file) Split full path into path & file. 395 dirize (str -- str) Ensure trailing slash is present. 396 replace.all (ser old new -- ser) Find & Replace 397 =========== ====================== ================= 395 398 396 399 … … 529 532 530 533 534 change 535 ------ 536 :: 537 538 (ser new [part int!] -- ser) 539 540 Change series at current position. 541 Returns *ser* at end of change. 542 543 531 544 match 532 545 ----- -
branches/thune/thread_safe/mkboot.t
r408 r414 110 110 ] 'loop func :map ;(ser comb -- ) 111 111 112 113 [ser old new | len] [ 114 old length? :len 115 ser old find if/keep (new len change :ser recurse) 116 ser 117 ] func :replace.all ;(ser old new -- ser) 118 119 112 120 [reduce to-text console.out] proc :prin ;(val -- ) 113 121 [reduce [first to-text console.out] iter] proc :prin.pack ;(val -- )
