Andreas Bolka napsal(a):

>Wednesday, January 19, 2005, 12:23:28 PM, Gabriele wrote:
>
>  
>
>>so you'd need to check PARSE's result and return NONE if it didn't
>>match.
>>    
>>
>
>and so that this exercise is not left to the reader:
>
>    find-nth: func [
>        "Returns the series at occurrence N of value or none."
>        series [series!]
>        value
>        n [integer!]
>        /local pos
>    ] [
>        either parse series [n [to value pos: value] to end] [pos] [none]
>    ]
>
>  
>
I sent my correction

  find-nth: func [
      "Returns the series at occurrence N of value or none."
      series [series!]
      value
      n [integer!]
      /local pos
  ] [
      if parse series [n [to value pos: value] to end] [pos]
  ]

immediately, but it didn't make it to the list yet :-(


-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to