Talk:Sum data type: Difference between revisions

(Perhaps needs more specification – a concrete and focused task ?)
 
 
(One intermediate revision by the same user not shown)
Line 4:
 
Perhaps something which requires simple option types of the Maybe or Either variety ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 10:20, 25 June 2019 (UTC)
 
e.g. the definition and use of something like the Haskell '''either''' function, which performs case analysis on a sum type value, applying one function if the value is a 'Left', and another if the value is a 'Right'. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 11:17, 25 June 2019 (UTC)
 
Or requires and uses the construction of trees with sum type nodes ? [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 10:23, 25 June 2019 (UTC)
9,655

edits