« Previous | Next » 

Revision bfe6c954

IDbfe6c95473d781d5657e32d331b69b35798c28c4
Parent 043a3929
Child efe98965

Added by Guido Trotter almost 11 years ago

htools: Add if' and select as functions

if' is just a functional version of the if-then-else construct. Using it
we can manipulate ifs as functions, and also build other functionality.

select allows to choose a result depending on truth value of statements,
with a final default, and can be used to substitute cascaded-nested
if-then-else statements.

Both come with unit tests.

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences