Jump to content

born

Members
  • Posts

    82
  • Joined

  • Last visited

Posts posted by born

  1. Is there a function like group-list in PWGL:

     

    SYSTEM GROUP-LST   (LIST GROUP-LENS):
    groups list into subsequnces, where group-lens indicates
    the length of each sublist. group-lens can be a number or a list of numbers.
    If list is not exhausted by group-lens, the last value of
     group-lens will be used as a constant until list has been exhausted.

     

    (group-lst lis '(1 2 3 4 5 6 7 8 9 10) '(2 3 5)) ; => ((1 2) (3 4 5) (6 7 8 9 10))

    (group-lst lis '(1 2 3 4 5 6 7 8 9 10) '(2 3 4)) ; => ((1 2) (3 4 5) (6 7 8 9) (10))

     

     

     

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy