Sha256: 4d220beea03f492cb69ca9da36ec87a3b93e9fe53c7b91e8035396401e4f3447

Contents?: true

Size: 349 Bytes

Versions: 396

Compression:

Stored size: 349 Bytes

Contents

(defmodule series
  (export (from-string 2)))

(defun from-string (width string) (rows (length string) width string))

(defun rows
  ([length width (= (cons _head tail) string)] (when (> length width))
   (let ((`#(,row ,_rest) (lists:split width string)))
     (cons row (rows (- length 1) width tail))))
  ([_length _width string]
   `(,string)))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.179 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.178 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.177 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.176 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.175 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.174 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.173 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.172 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.171 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.170 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.169 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.167 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.166 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.165 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.164 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.163 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.162 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.161 tracks/lfe/exercises/series/src/example.lfe
trackler-2.2.1.160 tracks/lfe/exercises/series/src/example.lfe