Changeset 320 for trunk/thune/doc
- Timestamp:
- 12/21/06 22:41:25 (2 years ago)
- Files:
-
- 1 modified
-
trunk/thune/doc/UserManual (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/doc/UserManual
r313 r320 263 263 Word Stack Usage Function 264 264 ======== ========================= ============================ 265 ift (logic -- ) Evaluate next value if true.265 ift_ (logic -- ) Evaluate next value if true. 266 266 iff (logic -- ) Evaluate next value if false. 267 267 if/C (val val -- ) Evaluate next value if comparison is true. … … 271 271 iter (ser body -- ) Iterate over series. 272 272 iter/N (ser body -- ) Iterate over series with skip. 273 proc (body -- )Create procedure.274 func (sig body -- )Create function with local values.273 proc (body -- proc) Create procedure. 274 func (sig body -- func) Create function with local values. 275 275 return () Leave function. 276 276 recurse () Start function from beginning. … … 311 311 make (type proto [p2] -- val) Create value. 312 312 as (val type -- val) View value as a similar type. 313 to (val type -- val) Convert value to a similar type. 313 314 type? (val -- type) Replace value with datatype of value. 314 315 type?.word (val -- word) Replace value with datatype word. … … 347 348 ========== ====================== ================= 348 349 append (ser val -- ser) Append value to series. 350 append (bin num bytes -- bin) Append number to binary. 349 351 append.cat (ser val -- ser) Join value to series. 350 insert (ser val -- ser) Insert value to series.352 insert (ser val -- ser) Insert value into series. 351 353 remove (ser -- ser) Remove value at current series position. 352 354 clear (ser -- ser) Remove all elements. … … 370 372 find (ser pat -- ser) Find pattern in series. 371 373 find.last (ser pat -- ser) Find pattern in series starting from end. 372 match (ser pat -- ser) Move position to end ofpattern.374 match_ (ser pat -- end) Move position to end of matching pattern. 373 375 trim (str -- str) Remove whitespace from start and end. 374 376 ========== ====================== ================= … … 483 485 ========== =========================== 484 486 487 488 489 Data Stack Functions 490 ==================== 491 492 493 494 Flow Control Functions 495 ======================= 496 497 ift 498 --- 499 :: 500 501 (logic -- ) 502 503 Evaluate next value if TOS is true. To evaluate more than one value use 504 a paren!. 505 506 Example:: 507 508 )> 4 1 gt? ift ("Four is greater than one." print) 509 Four is greater than one. 510 511 512 513 Data Manipulation Functions 514 =========================== 515 516 517 518 Series Functions 519 ================ 520 521 522 match 523 ----- 524 :: 525 526 (ser pat -- end series!/none!) 527 528 Move position to end of matching pattern. 529 Returns *none* if start of *ser* does not match *pat*. 530 531 532 533 Math Functions 534 ============== 535 536 537 538 Input/Output Functions 539 ====================== 540 541
