<s>[INST] listsum computes the sum of terms in a list . concode_field_sep PlaceHolder placeHolder concode_field_sep ListNode createGeomSeries concode_elem_sep void main [/INST] double function ( ListNode arg0 ) { if ( arg0 == null ) { return 0.0 ; } return ( ( Double ) arg0 . item ) . doubleValue ( ) + listSum ( arg0 . next ) ; </s>