Sha256: 0fc9646a1b6c409c44af1c2f4727018c721e06eb1ab24aff6208a2e1b5eaed4e

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

(examples-for rotate-2d-array
  ("returns nothing for nothing"
   (rotate-2d-array nil)
   nil)

  ("returns transformed array"
   (rotate-2d-array
     '((a b c d)
       (1 2 3 4)
       (w x y z)
       (one two three four)
       (un deux trois quatre)))
   ((a 1 w one un)
    (b 2 x two deux)
    (c 3 y three trois)
    (d 4 z four quatre)))

  ("first given list determines number of lists"
   (rotate-2d-array
     '((a b)
       (1 2 3 4)
       (w x y z)
       (one two three four)
       (un deux trois quatre)))
   ((a 1 w one un)
    (b 2 x two deux))))

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/lisp/tests/rotate-2d-array-examples.nydp