Paste: locals example

Author: slava
Mode: factor
Date: Thu, 5 Feb 2009 10:48:48
Plain Text |
:: (compute-grid-lines) ( grid n ns orientation -- seq )
    grid gap>> :> gap
    ns n suffix gap orientation v. '[ _ - orientation n*v ] map
    dup grid dim>> gap v- orientation reverse v* '[ _ v+ ] map
    [ [ gap [ 2/ ] map v+ ] map ] bi@ zip ;

New Annotation

Summary:
Author:
Mode:
Body: