Skip to content

Commit ef3d850

Browse files
committed
Added asPMVector
1 parent ef0b246 commit ef3d850

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)