File extension is in extensions list: Difference between revisions
Content deleted Content added
Replaced "map" by "mapIt". |
Changed the way to build the list of extensions using “mapIt”; changed the way to test the extension using “anyIt”. |
||
Line 1,299:
===Extra task===
The “splitFile” procedure no longer works in this case. We have to use “endsWith” from the “strutils” module, which changes the logic:
<lang nim>import strutils, sequtils
let fileNameList = [
for fileName in fileNameList:
{{out}}
|