The solution is List.exists (fn x => x = s) list_data
Now a question from Smerdy: {{{ 18:07] <Smerdyakov> OK, so how can you adapt this code to work with int lists instead of string lists? }}}
The solution is List.exists (fn x => x = s) list_data
Now a question from Smerdy: {{{ 18:07] <Smerdyakov> OK, so how can you adapt this code to work with int lists instead of string lists? }}}
SearchingLists (last edited 2008-07-09 05:48:15 by localhost)