• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Convert a string into a list without Delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert a string into a list without Delimiters


  • Subject: Re: Convert a string into a list without Delimiters
  • From: Andy Wylie <email@hidden>
  • Date: Fri, 09 Nov 2001 22:18:38 +1300

on 9/11/01 6:10 PM, Markus Schutt at email@hidden wrote:

> Does somebody have an idea how to convert a string in
> to a list without having delimiters in the string.
> I would like to put a block of 4 characters to a list
> item, so
> item 1 = characters 1-4
> item 2 = characters 5-8
> item 3 = characters 9-13
> etc.
> Does anybody knows an OSAX for this.
> I denitely do not want to use a repeat function,
> because I am dealing with (very) huge strings.
>
maybe you could use Akua's 'recompose' something like this with a pre
defined range...
---------------
property talitubbie : {{1, 4}, {5, 8}, {9, 12}, {13, 16}, {17, 20}, {21,
24}, {25, 28}, {29, 32}, {33, 36}, "etc"}
set aStan to "evilbushbomb4oil"
set osamasinpyjamas to items 1 thru (round ((count of aStan) / 4) rounding
up) of talitubbie
decompose aStan in ranges osamasinpyjamas
--> {{"evil", "bush", "bomb", "4oil"}}
-- a loop to make talitubbie...
set {talitubbie, ohOne} to {{}, 1}
repeat 10000000000000000 times
set ohTwo to ohOne + 3
set end of talitubbie to {ohOne, ohTwo}
set ohOne to ohTwo + 1
end repeat
----------------

http://globalresearch.ca/
__________________ Andy


References: 
 >Convert a string into a list without Delimiters (From: Markus Schutt <email@hidden>)

  • Prev by Date: Re: Work the Scripting Addition without restarting....(SOLVED)
  • Next by Date: Re: stack overflows
  • Previous by thread: Convert a string into a list without Delimiters
  • Next by thread: Re: Convert a string into a list without Delimiters
  • Index(es):
    • Date
    • Thread