Hi all,
i am just learning F# (coming from a C/C++/C# world) and have a hard time to understand this starnge new & fascinating world.
For that purpose i try to write some kind of logfile-parser (IIS-Logs, actually) & now i hit the following wall:
i read in the IIS logfile and mapped it to a string-array. (Thanks to Don Syme's Expert F# book...)
Now I want to parse that array for occurences of a certain string pattern and write out the the index of the array-elements into a list.
Then i want to split that array at these elements into new arrays, so that i have several arrays with the first element always the one with the string-pattern.
I would like to do this in a _as_least_imperative_as_possible_ & _as_pure_as_possible_
Is it possible to help me with a code snippet for that purpose? Would be really great!
Thank you in advance for your *very* appreciated help,
- Karl