{"id":227669,"date":"2024-04-12T06:33:04","date_gmt":"2024-04-12T06:33:04","guid":{"rendered":"https:\/\/namso-gen.co\/blog\/?p=227669"},"modified":"2024-04-12T06:33:04","modified_gmt":"2024-04-12T06:33:04","slug":"how-to-access-value-in-option-standard-ml","status":"publish","type":"post","link":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/","title":{"rendered":"How to access value in option Standard ML?"},"content":{"rendered":"<p>Standard ML (SML) is a statically typed functional programming language that provides various features and constructs to manipulate data. One of the useful constructs in SML is the option type, which allows you to represent the presence or absence of a value. However, accessing the value within an option requires some understanding of the language&#8217;s syntax and conventions. In this article, we will explore how to access the value in an option in Standard ML.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#The_Option_Type_in_Standard_ML\" title=\"The Option Type in Standard ML\">The Option Type in Standard ML<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#Accessing_the_Value_in_an_Option\" title=\"Accessing the Value in an Option\">Accessing the Value in an Option<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#Related_or_Similar_FAQs\" title=\"Related or Similar FAQs:\">Related or Similar FAQs:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#1_Can_an_option_in_Standard_ML_contain_any_type_of_value\" title=\"1. Can an option in Standard ML contain any type of value?\">1. Can an option in Standard ML contain any type of value?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#2_How_to_handle_multiple_options_in_Standard_ML\" title=\"2. How to handle multiple options in Standard ML?\">2. How to handle multiple options in Standard ML?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#3_What_happens_if_you_try_to_access_the_value_of_a_NONE_option\" title=\"3. What happens if you try to access the value of a `NONE` option?\">3. What happens if you try to access the value of a `NONE` option?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#4_How_can_I_create_a_new_option_in_Standard_ML\" title=\"4. How can I create a new option in Standard ML?\">4. How can I create a new option in Standard ML?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#5_Can_I_have_nested_options_in_Standard_ML\" title=\"5. Can I have nested options in Standard ML?\">5. Can I have nested options in Standard ML?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#6_Is_it_possible_to_access_the_value_within_an_option_without_pattern_matching\" title=\"6. Is it possible to access the value within an option without pattern matching?\">6. Is it possible to access the value within an option without pattern matching?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#7_How_do_I_handle_errors_when_accessing_the_value_within_an_option\" title=\"7. How do I handle errors when accessing the value within an option?\">7. How do I handle errors when accessing the value within an option?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#8_Can_I_convert_an_option_to_a_list_in_Standard_ML\" title=\"8. Can I convert an option to a list in Standard ML?\">8. Can I convert an option to a list in Standard ML?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#9_How_do_I_check_if_an_option_has_a_value_in_Standard_ML\" title=\"9. How do I check if an option has a value in Standard ML?\">9. How do I check if an option has a value in Standard ML?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#10_How_can_I_provide_a_default_value_when_accessing_the_value_within_an_option\" title=\"10. How can I provide a default value when accessing the value within an option?\">10. How can I provide a default value when accessing the value within an option?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#11_Can_I_use_the_if-then-else_construct_to_access_the_value_within_an_option\" title=\"11. Can I use the `if-then-else` construct to access the value within an option?\">11. Can I use the `if-then-else` construct to access the value within an option?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#12_Is_pattern_matching_the_only_way_to_handle_options_in_Standard_ML\" title=\"12. Is pattern matching the only way to handle options in Standard ML?\">12. Is pattern matching the only way to handle options in Standard ML?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"The_Option_Type_in_Standard_ML\"><\/span>The Option Type in Standard ML<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before diving into accessing the value in an option, let&#8217;s first understand the option type in SML. The option type is defined in the SML Basis Library and is used to represent values that may or may not be present. It is similar to the Maybe type found in other functional programming languages.<\/p>\n<p>The option type is defined as follows in Standard ML:<br \/>\n&#8220;`<br \/>\ndatatype &#8216;a option = NONE | SOME of &#8216;a<br \/>\n&#8220;`<br \/>\nHere, `&#8217;a` represents the type parameter, which can be any type. The option type has two constructors: `NONE` represents the absence of a value, while `SOME` wraps a value of type `&#8217;a`.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Accessing_the_Value_in_an_Option\"><\/span>Accessing the Value in an Option<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To access the value stored within an option, you need to pattern match on the option type. Pattern matching allows you to destructure the option and handle both cases: when a value is present (`SOME`) and when it is absent (`NONE`).<\/p>\n<p>Here&#8217;s an example that demonstrates how to access the value in an option:<br \/>\n&#8220;`<br \/>\nval myOption = SOME 42; (* An option containing the value 42 *)<\/p>\n<p>case myOption of<br \/>\n  NONE => print &#8220;No value present&#8221;<br \/>\n| SOME value => print (&#8220;The value is: &#8221; ^ Int.toString value)<br \/>\n&#8220;`<br \/>\nIn this example, the `case` statement is used to pattern match on `myOption`. The first pattern `NONE` handles the case when `myOption` is `NONE`, and it simply prints a message indicating that no value is present. The second pattern `SOME value` handles the case when `myOption` is `SOME`, and it prints the value using the `Int.toString` function.<\/p>\n<p><b>How to access value in option Standard ML?<\/b><br \/>\nTo access the value in an option in Standard ML, you can use pattern matching. The `case` statement allows you to handle both cases: when the option is `NONE` and when it is `SOME`.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Related_or_Similar_FAQs\"><\/span>Related or Similar FAQs:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h3><span class=\"ez-toc-section\" id=\"1_Can_an_option_in_Standard_ML_contain_any_type_of_value\"><\/span>1. Can an option in Standard ML contain any type of value?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, an option in Standard ML can contain values of any type. The type of the value is determined by the type parameter of the option type.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_How_to_handle_multiple_options_in_Standard_ML\"><\/span>2. How to handle multiple options in Standard ML?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can handle multiple options using nested pattern matching. Each option can be pattern matched individually to access its value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_What_happens_if_you_try_to_access_the_value_of_a_NONE_option\"><\/span>3. What happens if you try to access the value of a `NONE` option?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nIf you try to access the value of a `NONE` option, it will result in a runtime exception. Make sure to always handle the case when the option is `NONE` to avoid such exceptions.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_How_can_I_create_a_new_option_in_Standard_ML\"><\/span>4. How can I create a new option in Standard ML?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can create a new option using the `SOME` constructor and providing a value of the desired type, or you can use the `NONE` constructor to represent the absence of a value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Can_I_have_nested_options_in_Standard_ML\"><\/span>5. Can I have nested options in Standard ML?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can have nested options in Standard ML. That means an option can contain another option as its value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_Is_it_possible_to_access_the_value_within_an_option_without_pattern_matching\"><\/span>6. Is it possible to access the value within an option without pattern matching?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, you need to use pattern matching to access the value within an option in Standard ML. It is the idiomatic way to handle options and ensure your code covers both cases.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_How_do_I_handle_errors_when_accessing_the_value_within_an_option\"><\/span>7. How do I handle errors when accessing the value within an option?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use the `Option.map` function or the `Option.valOf` function to handle errors when accessing the value within an option. These functions provide a convenient way to handle options and perform computations.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"8_Can_I_convert_an_option_to_a_list_in_Standard_ML\"><\/span>8. Can I convert an option to a list in Standard ML?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYes, you can convert an option to a list using pattern matching. If the option is `NONE`, you can represent it as an empty list. If the option is `SOME value`, you can represent it as a list containing a single element.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"9_How_do_I_check_if_an_option_has_a_value_in_Standard_ML\"><\/span>9. How do I check if an option has a value in Standard ML?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can check if an option has a value by pattern matching on the option. If the option is `NONE`, it means there is no value. If the option is `SOME value`, it means there is a value.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"10_How_can_I_provide_a_default_value_when_accessing_the_value_within_an_option\"><\/span>10. How can I provide a default value when accessing the value within an option?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nYou can use pattern matching with a `default` case to handle the case when the option is `NONE` and provide a default value instead of accessing the value within the option.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"11_Can_I_use_the_if-then-else_construct_to_access_the_value_within_an_option\"><\/span>11. Can I use the `if-then-else` construct to access the value within an option?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nNo, you cannot directly use the `if-then-else` construct to access the value within an option. Pattern matching is the recommended way to handle options in Standard ML.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"12_Is_pattern_matching_the_only_way_to_handle_options_in_Standard_ML\"><\/span>12. Is pattern matching the only way to handle options in Standard ML?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\nPattern matching is the idiomatic way to handle options in Standard ML. While there are other ways, such as using higher-order functions and the `Option` module, pattern matching provides a clear and concise syntax for dealing with options.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Standard ML (SML) is a statically typed functional programming language that provides various features and constructs to manipulate data. One of the useful constructs in SML is the option type, which allows you to represent the presence or absence of a value. However, accessing the value within an option requires some understanding of the language&#8217;s &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to access value in option Standard ML?\" class=\"read-more button\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#more-227669\">Read more<span class=\"screen-reader-text\">How to access value in option Standard ML?<\/span><\/a><\/p>\n","protected":false},"author":57,"featured_media":107420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86279],"tags":[],"class_list":["post-227669","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to access value in option Standard ML?<\/title>\n<meta name=\"description\" content=\"Standard ML (SML) is a statically typed functional programming language that provides various features and constructs to manipulate data. One of the\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to access value in option Standard ML?\" \/>\n<meta property=\"og:description\" content=\"Standard ML (SML) is a statically typed functional programming language that provides various features and constructs to manipulate data. One of the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/\" \/>\n<meta property=\"og:site_name\" content=\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/synchronyfinancial\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-12T06:33:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Casey Mayer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@synchrony\" \/>\n<meta name=\"twitter:site\" content=\"@synchrony\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Casey Mayer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/\"},\"author\":{\"name\":\"Casey Mayer\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\"},\"headline\":\"How to access value in option Standard ML?\",\"datePublished\":\"2024-04-12T06:33:04+00:00\",\"dateModified\":\"2024-04-12T06:33:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/\"},\"wordCount\":893,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"articleSection\":[\"Learn\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/\",\"name\":\"How to access value in option Standard ML?\",\"isPartOf\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\"},\"datePublished\":\"2024-04-12T06:33:04+00:00\",\"dateModified\":\"2024-04-12T06:33:04+00:00\",\"description\":\"Standard ML (SML) is a statically typed functional programming language that provides various features and constructs to manipulate data. One of the\",\"breadcrumb\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/namso-gen.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to access value in option Standard ML?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#website\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"description\":\"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co\",\"publisher\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/namso-gen.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#organization\",\"name\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\",\"url\":\"https:\/\/namso-gen.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"contentUrl\":\"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png\",\"width\":500,\"height\":164,\"caption\":\"Namso Gen Blog - Free Credit Card Generator [100% Valid]\"},\"image\":{\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/synchronyfinancial\",\"https:\/\/twitter.com\/synchrony\",\"https:\/\/www.youtube.com\/synchronyfinancial\",\"https:\/\/www.instagram.com\/synchrony\",\"https:\/\/www.linkedin.com\/company\/synchrony-financial\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f\",\"name\":\"Casey Mayer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Casey Mayer\"},\"description\":\"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to access value in option Standard ML?","description":"Standard ML (SML) is a statically typed functional programming language that provides various features and constructs to manipulate data. One of the","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/","og_locale":"en_US","og_type":"article","og_title":"How to access value in option Standard ML?","og_description":"Standard ML (SML) is a statically typed functional programming language that provides various features and constructs to manipulate data. One of the","og_url":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/","og_site_name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","article_publisher":"https:\/\/www.facebook.com\/synchronyfinancial","article_published_time":"2024-04-12T06:33:04+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2024\/03\/faq.png","type":"image\/png"}],"author":"Casey Mayer","twitter_card":"summary_large_image","twitter_creator":"@synchrony","twitter_site":"@synchrony","twitter_misc":{"Written by":"Casey Mayer","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#article","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/"},"author":{"name":"Casey Mayer","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f"},"headline":"How to access value in option Standard ML?","datePublished":"2024-04-12T06:33:04+00:00","dateModified":"2024-04-12T06:33:04+00:00","mainEntityOfPage":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/"},"wordCount":893,"commentCount":0,"publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"articleSection":["Learn"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/","url":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/","name":"How to access value in option Standard ML?","isPartOf":{"@id":"https:\/\/namso-gen.co\/blog\/#website"},"datePublished":"2024-04-12T06:33:04+00:00","dateModified":"2024-04-12T06:33:04+00:00","description":"Standard ML (SML) is a statically typed functional programming language that provides various features and constructs to manipulate data. One of the","breadcrumb":{"@id":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/namso-gen.co\/blog\/how-to-access-value-in-option-standard-ml\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/namso-gen.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to access value in option Standard ML?"}]},{"@type":"WebSite","@id":"https:\/\/namso-gen.co\/blog\/#website","url":"https:\/\/namso-gen.co\/blog\/","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","description":"In Namso gen blog you can get many tips regarding to Credit cards, VCC, Credit card security etc. You can generate credit cards by using Namso-gen.co","publisher":{"@id":"https:\/\/namso-gen.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/namso-gen.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/namso-gen.co\/blog\/#organization","name":"Namso Gen Blog - Free Credit Card Generator [100% Valid]","url":"https:\/\/namso-gen.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","contentUrl":"https:\/\/namso-gen.co\/blog\/wp-content\/uploads\/2020\/07\/namso-gen-logo.png","width":500,"height":164,"caption":"Namso Gen Blog - Free Credit Card Generator [100% Valid]"},"image":{"@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/synchronyfinancial","https:\/\/twitter.com\/synchrony","https:\/\/www.youtube.com\/synchronyfinancial","https:\/\/www.instagram.com\/synchrony","https:\/\/www.linkedin.com\/company\/synchrony-financial"]},{"@type":"Person","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/89e431077ef417dfaa131f435124f18f","name":"Casey Mayer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/namso-gen.co\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Casey Mayer"},"description":"Guest author Casey Mayer has meticulously crafted and revised this article to the best of their knowledge and understanding. Readers are strongly advised to exercise caution, verify information independently, and rely on their own judgment when considering the information provided. Read more articles on Namso Gen here."}]}},"_links":{"self":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/227669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/comments?post=227669"}],"version-history":[{"count":0,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/posts\/227669\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media\/107420"}],"wp:attachment":[{"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/media?parent=227669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/categories?post=227669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namso-gen.co\/blog\/wp-json\/wp\/v2\/tags?post=227669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}