We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef0b246 commit ef3d850Copy full SHA for ef3d850
src/Math-Core/Collection.extension.st
@@ -0,0 +1,11 @@
1
+Extension { #name : #Collection }
2
+
3
+{ #category : #'*Math-Core' }
4
+Collection >> asPMVector [
5
6
+ | aVector index |
7
+ aVector := PMVector new: self size.
8
+ index := 0.
9
+ self do: [:each | aVector at: (index := index + 1) put: each].
10
+ ^aVector
11
+]
0 commit comments