Seq.append expects two values, and you're only giving it one. That means you've partially-applied that function, which results in a new function that expects the missing parameter, and will return the end result when called.

Try

1
Seq.append laccum value

.

More broadly, Seq.append isn't particularly efficient. If you end up calling AppendSeed many times, I would choose a different data structure than a sequence for internal storage. ResizeArray might be appropriate.

By on 1/30/2013 8:26 AM ()

Thanks Joel. That makes sense.

I'm toying around with structure to see how they cast between VB and F#. So, it guess the value it returned was the internal name of the lambda expression -- @108-1.

A sequence of sequences is probably not what I want to use in the long run, more of a matrix. I will be targeting an m (row) x n (col) array and computing the euclidean distances along the rows. Then comparing the results to find the shortest distance.

dgp

By on 1/30/2013 9:03 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper