Changeset 36759 in project


Ignore:
Timestamp:
11/05/18 16:27:43 (9 days ago)
Author:
juergen
Message:

simple-cells 1.1.1 synchronizes documentation with code

Location:
release/5/simple-cells
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • release/5/simple-cells/tags/1.1.1/simple-cells.egg

    r36750 r36759  
    11
    2 ((synopsis "Implementation of typed simple-cells to replace general set! operators")
     2((synopsis "Implementation of typed cells to replace general set! operators")
    33 (category data)
    44 (license "BSD")
     
    66 (dependencies simple-exceptions)
    77 (author "Juergen Lorenz")
    8  (version "1.1")
     8 (version "1.1.1")
    99 (components (extension simple-cells)))
  • release/5/simple-cells/tags/1.1.1/simple-cells.scm

    r36750 r36759  
    6262    (values
    6363      (lambda (var . tests)
    64         (let ((checks #f) (state #f))
    65           (set! checks tests)
    66           (set! state (apply (<<< 'cell) var 'state checks))
     64        (let ((state  (apply (<<< 'cell) var 'state tests)))
    6765          (case-lambda
    68             (() state);(values state checks))
     66            (() state)
    6967            ((arg)
    7068             (let ((old state))
     
    7270                     (if (and (symbol? arg) (eq? arg type))
    7371                       arg
    74                        (apply (<<< 'cell) arg 'arg checks)))
     72                       (apply (<<< 'cell) arg 'arg tests)))
    7573               old)))))
    7674      (lambda (xpr)
     
    110108      "creates a cell, initialising its contents to var"
    111109      "provided all test predicates succed."
    112       "A cell is a procedure of zero or one argument."
    113       "Without argument, it returns two values,"
    114       "its content and the list of test predicates."
    115       "With an argument the content is changed to that argument"
     110      "A cell is a procedure of zero or one argument,"
     111      "closed over its state."
     112      "Without argument, it returns its state."
     113      "With an argument the state is changed to that argument"
     114      "and the old state returned,"
    116115      "provided all test predicates succeed.")
    117116    (cell?
  • release/5/simple-cells/trunk/simple-cells.egg

    r36750 r36759  
    11
    2 ((synopsis "Implementation of typed simple-cells to replace general set! operators")
     2((synopsis "Implementation of typed cells to replace general set! operators")
    33 (category data)
    44 (license "BSD")
     
    66 (dependencies simple-exceptions)
    77 (author "Juergen Lorenz")
    8  (version "1.1")
     8 (version "1.1.1")
    99 (components (extension simple-cells)))
  • release/5/simple-cells/trunk/simple-cells.scm

    r36750 r36759  
    6262    (values
    6363      (lambda (var . tests)
    64         (let ((checks #f) (state #f))
    65           (set! checks tests)
    66           (set! state (apply (<<< 'cell) var 'state checks))
     64        (let ((state  (apply (<<< 'cell) var 'state tests)))
    6765          (case-lambda
    68             (() state);(values state checks))
     66            (() state)
    6967            ((arg)
    7068             (let ((old state))
     
    7270                     (if (and (symbol? arg) (eq? arg type))
    7371                       arg
    74                        (apply (<<< 'cell) arg 'arg checks)))
     72                       (apply (<<< 'cell) arg 'arg tests)))
    7573               old)))))
    7674      (lambda (xpr)
     
    110108      "creates a cell, initialising its contents to var"
    111109      "provided all test predicates succed."
    112       "A cell is a procedure of zero or one argument."
    113       "Without argument, it returns two values,"
    114       "its content and the list of test predicates."
    115       "With an argument the content is changed to that argument"
     110      "A cell is a procedure of zero or one argument,"
     111      "closed over its state."
     112      "Without argument, it returns its state."
     113      "With an argument the state is changed to that argument"
     114      "and the old state returned,"
    116115      "provided all test predicates succeed.")
    117116    (cell?
Note: See TracChangeset for help on using the changeset viewer.