This file contains 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
#= assignment of a function to a new name | |
- is shallow copy of a function | |
- in programming parlance: done by reference | |
=# | |
f(x) = 2x | |
g = f | |
g #f (generic function with 1 method) | |
g(2) #4 | |
f(x) = 4x |
This file contains 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
package main | |
// Sources: | |
// 1. https://go.dev/tour/methods/15 | |
// 2. https://go.dev/tour/methods/16 | |
// 3. https://stackoverflow.com/questions/6996704/how-to-check-variable-type-at-runtime-in-go-language | |
// 4. https://go.dev/tour/methods/9 | |
// Notions | |
// concrete types like int, float64, string etc |
This file contains 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
library(shiny) | |
library(quantmod) | |
library(VGAM) | |
# Define server logic for random distribution application | |
shinyServer(function(input, output) { | |
# acquiring data | |
dataInput <- reactive({ | |
if (input$get == 0) |
NewerOlder