Skip to content

Commit 340be4c

Browse files
committed
[Enh]: Magritte CSV Writer - Support Non-SequencedCollections
Replace `first `, which fails for e.g. Sets, with `atRandom`
1 parent aa9ce1c commit 340be4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repository/Neo-CSV-Magritte/MACSVWriter.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ MACSVWriter >> map: aString fieldSource: aBlock [
9696

9797
{ #category : #accessing }
9898
MACSVWriter >> subjectDescription [
99-
^ subjectDescription ifNil: [ subjectDescription := self subjects first magritteDescription ]
99+
^ subjectDescription ifNil: [ subjectDescription := self subjects atRandom magritteDescription ]
100100
]
101101

102102
{ #category : #accessing }

0 commit comments

Comments
 (0)