empty Block for last block instruction
This commit is contained in:
parent
a61c9e7133
commit
85d4fd33b0
@ -20,6 +20,7 @@ extractFirstFromBlock (Block (x : _)) = x
|
|||||||
extractFirstFromBlock gene = gene
|
extractFirstFromBlock gene = gene
|
||||||
|
|
||||||
extractLastFromBlock :: Gene -> Gene
|
extractLastFromBlock :: Gene -> Gene
|
||||||
|
extractLastFromBlock (Block []) = Block []
|
||||||
extractLastFromBlock (Block xs) = last xs
|
extractLastFromBlock (Block xs) = last xs
|
||||||
extractLastFromBlock gene = gene
|
extractLastFromBlock gene = gene
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user