Just read this:
https://www.codeproject.com/articles/1091356/the-elegant-code-i-wish-i-can-write-in-csharp

Which is a very nice overview of F# and functional programming - it starts
w/ this

// F# Quicksort    let rec quicksort = function
    | [] -> []
    | x :: xs ->
        let smaller = List.filter ((>) x) xs
        let larger = List.filter ((<=) x) xs
        quicksort smaller @ [x] @ quicksort larger


and goes through all the basics of F# until, at the end (15 short
sections), you can understand the syntax for it all. I don't know enough P6
to do that (yet?) but it'd ... hmm:
https://en.wikipedia.org/wiki/Perl_6#Quicksort

looks very much the same - and I understand that one.  Maybe I could do it.

-- 

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk

Reply via email to