Anonymous user
File extension is in extensions list: Difference between revisions
File extension is in extensions list (view source)
Revision as of 17:43, 9 December 2020
, 3 years agoChanged the way to build the list of extensions using “mapIt”; changed the way to test the extension using “anyIt”.
(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}}
|