3. é¢æ°ããã°ã©ãã³ã°ã®é¢æ° æ°å¦ã§ããã¨ããã®é¢æ° f(x) = x + 1 ã ãã Scala ã§ã¯ â¢é¢æ°å®ç¾©ã« = (ã¤ã³ã¼ã«) ãä½¿ç¨ â¢é¢æ°å ã§æå¾ã«è©ä¾¡ãããå¤ãè¿ã def f(x: Int) {x + 1} Which is def f(x: Int) = return x + 1 better? def f(x: Int) = x + 1 â»æ³¨: ä¸ã® 2ã¤ã¯æ£ããã³ã¼ãã§ã¯ããã¾ããã
{{#tags}}- {{label}}
{{/tags}}