Sha256: e3d2973e5c00e9233229ea54a54e7af274899b6732d52357db1abaa0e0bb654e

Contents?: true

Size: 413 Bytes

Versions: 22

Compression:

Stored size: 413 Bytes

Contents

(examples-for returning
  ("it stores a value, executes body, returns the stored value"
   (let x 2
     (returning x
       (= x 3)))
   2))

(examples-for returnlet
  ("it stores the given value in the given variable, executes body, returns the value assigned to the variable"
   (let result (returnlet hsh (hash) (= hsh.a 1) (= hsh.b 2))
     (list (hash-keys result) (hash-values result)))
   ((a b) (1 2))))

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/lisp/tests/returning-examples.nydp
nydp-0.5.1 lib/lisp/tests/returning-examples.nydp
nydp-0.5.0 lib/lisp/tests/returning-examples.nydp
nydp-0.4.6 lib/lisp/tests/returning-examples.nydp
nydp-0.4.5 lib/lisp/tests/returning-examples.nydp
nydp-0.4.3 lib/lisp/tests/returning-examples.nydp
nydp-0.4.2 lib/lisp/tests/returning-examples.nydp
nydp-0.4.1 lib/lisp/tests/returning-examples.nydp
nydp-0.4.0 lib/lisp/tests/returning-examples.nydp
nydp-0.3.0 lib/lisp/tests/returning-examples.nydp
nydp-0.2.6 lib/lisp/tests/returning-examples.nydp
nydp-0.2.5 lib/lisp/tests/returning-examples.nydp
nydp-0.2.3 lib/lisp/tests/returning-examples.nydp
nydp-0.2.2 lib/lisp/tests/returning-examples.nydp
nydp-0.2.1 lib/lisp/tests/returning-examples.nydp
nydp-0.2.0 lib/lisp/tests/returning-examples.nydp
nydp-0.1.15 lib/lisp/tests/returning-examples.nydp
nydp-0.1.14 lib/lisp/tests/returning-examples.nydp
nydp-0.1.13.2 lib/lisp/tests/returning-examples.nydp
nydp-0.1.13.1 lib/lisp/tests/returning-examples.nydp