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