[squeak-dev] Given an interval of numbers from 1 to 100 how to split them into 10 collections(?) of 1 to 10.
gettimothy
gettimothy at zoho.com
Thu Jan 28 20:03:38 UTC 2021
Hi Folks,
For a development tool and Unicode grok exercise, I am recreating the functionality of: https://jrgraphix.net/r/Unicode/
For the Latin unicode characters, I would like to create a table 10 <td> things wide in a table row.
There has got to be an elegant way rather than the kludge I am imagining...
Here is my current code that has one TD for each row.
render000020to00007F: html
html table
with:[
html tableHead with: [html strong: ' Basic Latin'].
html tableBody with:[
(16r000020 asCharacter to: 16r00007F asCharacter)
do:[:each|
html tableRow with:[
html tableHeading: (each asInteger).
html tableData: each]]]]
If I could "chunk" that (16r000020 asCharacter to: 16r00007F asCharacter) or the Interval (16r000020 to: 16r00007F) into subsets of 10, it would be easy to code this.
thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210128/45b984c5/attachment.html>
More information about the Squeak-dev
mailing list
|