Created
          February 28, 2021 20:35 
        
      - 
      
- 
        Save dullbananas/56cd4a282973c0679ce36af40af6a719 to your computer and use it in GitHub Desktop. 
    Impure function in Elm
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | random : Value -> Float | |
| random = | |
| decodeValue (field "random" float) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | let object = { | |
| get random() { | |
| return Math.random(); | |
| } | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment