2022-02-01ãã1ã¶æéã®è¨äºä¸è¦§
7ç« ã®ã¤ã¥ãã ã¾ãã¯é åãé åã¯ãµã¤ãºåºå®ã§ãã¥ã¼ã¿ãã«ãè¦ããã«ãã¡ã¢ãªä¸ã«ã¹ãã£ã¨é åãããã£ã¦ãã¨ã§ããã é åå¼ã[| 1; 2; 3 |] Array.zeroã§é åã®ç¢ºä¿ã¨åæåãåºæ¥ããã¼ãã§åæåããããã°zeroCreateã使ã å¤æ¬¡å é åã¯ã¤ã³ããã¯ã¹â¦
7ç« ãèªãã§ããããã³ã¬ã¯ã·ã§ã³ã®è©±ã ã¾ãã¯ãªã¹ããé¢æ°åã§ãªã¹ãã¨ããã°ã(car, cdr)ã®ãªã¹ãã ã 'a list ::ãconsã[]ã空ãªã¹ã carã¯List.headãcdrã¯List.tailã ãã¿ã¼ã³ããã 空ãªã¹ããã¿ã¼ã³ ã³ã³ã¹ãã¿ã¼ã³(_::_ã¿ãããªæã) ãªã¹ããã¿â¦
6ç« ãèªãã§ãããã6ç« ã¯ç´ç²ãªé¢æ°åè¨èªããã¯ã¿åºã話ã§ããã ã¾ããã¢ã¸ã¥ã¼ã«ã®èª¬æã§ãä¾ã®ããã«ãããããã¢ã¸ã¥ã¼ã«ãä¾ç¤ºããã¦ããã type Jyanken = Gu | Ti | Pa [<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>] module Jyanken = type Result = P1Win | TieGame | P2Win let random = Sy</compilationrepresentation(compilationrepresentationflags.modulesuffix)>â¦
ä»åã¯ããã®æ¬ã®5.10ããé²ããã å®è·µ F# é¢æ°åããã°ã©ãã³ã°å ¥éä½è :èäº çä¸: ãã太æè¡è©è«ç¤¾Amazon 5.10ã¯ãã¿ã¼ã³ãããã ãã¿ã¼ã³ãããã¯Rustã«ãããããæè¿ã¯Rubyã«ãå ¥ã£ããã©ããã£ããç解åºæ¥ãã¨ã¯è¨ããªãã ãã使ãã¤ãã£ãªã ã¯â¦
5ç« ãèªãã§ãããã inline ããã«inlineã®èª¬æãããã®ã¯åçªæããããªãã»ã»ã» ããªããã£ãå intã¯ç¬¦å·ä»ã32bit(符å·ãªã32bitæ´æ°ã¯uint32ããã£ã¡ã¯32ãã¤ã) 符å·ä»ãbyteã¯sbyteã符å·ãªããbyteããªãã©ã«ã¯yãã¤ã floatã¯64bitã32bitã¯float3â¦
æãåãããªããèªãã§ããã å®è·µ F# é¢æ°åããã°ã©ãã³ã°å ¥éä½è :èäº çä¸: ãã太æè¡è©è«ç¤¾Amazon 4ç« ã¯ æ¯è¼æ¼ç®åã¨çå½å¤ è«çæ¼ç® ifå¼ else if ã¯elifã¨æ¸ã ã¦ãããã¨do mutable ã¿ãã« ã«ãªã¼å ã¦ã¼ã¶ã¼å®ç¾©æ¼ç®å ãããæ¼ç®å ãã¤ãã©ã¤â¦
ãã£ã¨ã³ã¼ããæ¸ããã¾ãã¯ããã®æ¬ã®3ç« ããããããã£ã¦ãããã å®è·µ F# é¢æ°åããã°ã©ãã³ã°å ¥éä½è :èäº çä¸: ãã太æè¡è©è«ç¤¾Amazon ã¡ãªã¿ã«ããã®æ¬ã¯ã¡ãã£ã¨å¤ãã2010å¹´ã«F#ãVisual Studioã«ä¹ã£ãã£ãã°ã£ããã®ãã P68ãããã®å¤æ°æç¸â¦
ã ãã¶é·ãéãã¤ã³ã¹ãã¼ã«ã ããã¦æ¾ç½®ãã¦ããã¾ãããããããã¨ã ãã¦ãã¾ãã¯ã¤ã³ã¿ã©ã¯ãã£ãã·ã§ã«ã®ä½¿ãæ¹ãã¤ã³ã¿ã©ã¯ãã£ãã·ã§ã«ã¯fsiã¨ããååã§ãdotnetã³ãã³ãã使ã£ã¦èµ·åãã > dotnet fsi Microsoft (R) F# ã¤ã³ã¿ã©ã¯ãã£ã ãã¼ã¸ã§â¦