Sha256: 73d6660974c6ec3712e7e35ab01df27ed080aa6a9b36e4fc064301f8122db21e

Contents?: true

Size: 366 Bytes

Versions: 22

Compression:

Stored size: 366 Bytes

Contents

-module( example ).

-export( [from_string/2, test_version/0] ).

from_string( Width, String ) -> rows( erlang:length(String), Width, String ).

test_version() ->
    1.


rows( Length, Width, [_H | T]=String ) when Length > Width ->
  {Row, _Rest} = lists:split( Width, String ),
  [Row | rows( Length - 1, Width, T )];
rows( _Length, _Width, String ) -> [String].

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
trackler-2.0.8.7 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.8.6 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.8.5 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.8.4 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.8.3 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.8.2 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.8.1 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.7.0 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.44 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.43 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.42 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.41 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.40 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.39 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.38 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.37 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.36 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.35 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.34 tracks/erlang/exercises/series/src/example.erl
trackler-2.0.6.33 tracks/erlang/exercises/series/src/example.erl