Conditional structures: Difference between revisions

Content added Content deleted
Line 972: Line 972:
x::xs = x :: force xs
x::xs = x :: force xs
[] = []</lang>
[] = []</lang>

===is expression===

<lang ela>
let force lst = if lst is (x::xs) then
x :: force xs
else []</lang>



=={{header|Factor}}==
=={{header|Factor}}==