This repository was archived by the owner on May 18, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -2233,20 +2233,20 @@ protected function StringDelimit2Int
22332233" splits the input string at the delimiter string in list of strings and converts to integer list"
22342234 input String inString;
22352235 input String inDelim;
2236- output list< integer> outList;
2237- algorithm outList:= matchcontinue(inString,inDelim)
2238- local
2239- list< String > lst;
2240- list< Integer > lst2;
2241- String v,delim;
2242- case (v,delim)
2243- equation
2244- lst= Util . stringSplitAtChar(v,delim);
2245- lst2= List . map(lst,stringInt);
2236+ output list< Integer > outList;
2237+ algorithm
2238+ outList := matchcontinue (inString,inDelim)
2239+ local
2240+ list< String > lst;
2241+ list< Integer > lst2;
2242+ String v,delim;
2243+ case (v,delim)
2244+ equation
2245+ lst= Util . stringSplitAtChar(v,delim);
2246+ lst2= list(stringInt(s) for s in lst);
22462247 then lst2;
2247- case (_,delim)
2248- then {};
2249- end matchcontinue;
2248+ else {};
2249+ end matchcontinue;
22502250end StringDelimit2Int ;
22512251
22522252public function createBackendLabelVars
You can’t perform that action at this time.
0 commit comments