Changeset f1e1999 in OpenModelica
- Timestamp:
- 2019-11-20T11:36:38+01:00 (5 years ago)
- Branches:
- maintenance/v1.15
- Children:
- 53a929e8
- Parents:
- 5fccefeb
- git-author:
- Per Östlund <perost86@…> (11/13/19 12:27:33)
- git-committer:
- Adrian Pop <adrian.pop@…> (11/20/19 11:36:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/Compiler/NFFrontEnd/NFExpression.mo
r43a2335 rf1e1999 2000 2000 Expression e; 2001 2001 algorithm 2002 if isSome(exp) then2003 SOME(e) := exp;2004 outExp := SOME(map(e, func));2005 end if;2002 outExp := match exp 2003 case SOME(e) then SOME(map(e, func)); 2004 else exp; 2005 end match; 2006 2006 end mapOpt; 2007 2007 … … 2340 2340 Expression e; 2341 2341 algorithm 2342 if isSome(exp) then2343 SOME(e) := exp;2344 outExp := SOME(func(e));2345 end if;2342 outExp := match exp 2343 case SOME(e) then SOME(func(e)); 2344 else exp; 2345 end match; 2346 2346 end mapShallowOpt; 2347 2347 … … 3272 3272 Expression e; 3273 3273 algorithm 3274 if isSome(exp) then 3275 SOME(e) := exp; 3276 (e, arg) := mapFold(e, func, arg); 3277 outExp := SOME(e); 3278 end if; 3274 outExp := match exp 3275 case SOME(e) 3276 algorithm 3277 (e, arg) := mapFold(e, func, arg); 3278 then 3279 SOME(e); 3280 3281 else exp; 3282 end match; 3279 3283 end mapFoldOpt; 3280 3284
Note: See TracChangeset
for help on using the changeset viewer.