首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏bit哲学院

    Python函数是所谓的第一类对象(First-Class Object)是什么鬼?

    但函数作为第一类对象(First-Class Object)却是 Python 函数的一大特性。那到底什么是第一类对象呢?   

    1.6K30发布于 2020-12-14
  • 来自专栏程序员叨叨叨

    8.1 函数第 8 章 函数与程序设计

    关于 Cg 中形参数组的原始资料可以在文献[3]Array 章节中查到: “The most important difference from C is that arrays are first-class 这段英文中描述道,Cg 语言中数组是“first-class types”,中文翻译为“第一类数据类型”,所谓“第一类(first-class)”的含义是,强调该类型数据是“不可分解的、高级别的、不被重述的 如有兴趣深入了解“first-class”概念,可参阅 Matthieu Sozeau and Nicolas Oury 所著的“First-Class Type Classes”一文。

    76320发布于 2018-09-29
  • 来自专栏开源技术小栈

    PHP 8.5 管道操作符是如何工作的?

    语法 每个可调用对象必须只接受一个必需的参数 数据从左到右流经管道:A |> B |> C 支持任何有效的 PHP 可调用对象(函数、方法、闭包、一类可调用对象) 管道运算符与 PHP 8.1 的 first-class 可调用语法 ...: 管道运算符与 PHP 8.1 的 first-class 可调用语法 ...: // First-class callable syntax $result = "hello world

    16510编辑于 2025-07-29
  • 来自专栏前端自习课

    【JS】222-JS 函数的 6 个基本术语

    让我们谈谈什么是:lambdas(匿名函数)、 first-class functions(头等函数)、higher-order functions(高阶函数)、unary functions(一元函数 什么是first-class functions(头等函数)? First-class type 意味着,该类型可以用作变量的值。在JavaScript中一个字符串是头等类型,一个函数也是头等类型。 在绑定事件监听器时,函数作为first-class被使用: const handler = () => console.log ('I am function'); document.addEventListener

    82050发布于 2019-07-25
  • 来自专栏漫画前端

    译 | JavaScript函数的6个基本术语

    让我们谈谈什么是:lambdas(匿名函数)、 first-class functions(头等函数)、higher-order functions(高阶函数)、unary functions(一元函数 什么是first-class functions(头等函数)? First-class type 意味着,该类型可以用作变量的值。在JavaScript中一个字符串是头等类型,一个函数也是头等类型。 在绑定事件监听器时,函数作为first-class被使用: const handler = () => console.log ('I am function'); document.addEventListener

    55010发布于 2020-12-16
  • 来自专栏进击的Coder

    Kotlin:我干爹是 Google !

    ” 5 年前的 2017 Google I/O 大会上,谷歌宣布:官方正式支持将 Kotlin 作为 Android 开发的 First-Class 语言。 2017 2017:First-Class,谷歌宣布 Kotlin 成为 Android 官方支持开发语言 在谷歌 I/O 2017 开发者大会上,官方宣布将支持 Kotlin 作为 Android 开发的 First-Class 语言。

    97830编辑于 2022-09-13
  • 来自专栏函数式编程语言及工具

    Scalaz(30)- Free :Natural Tranformation ~> - map higher kinded types for free

    * * Can be used to encode first-class functor transformations in the * same way functions encode first-class concrete value morphisms; * for example, `sequence` from [[scalaz.Traverse]] and `cosequence

    70150发布于 2018-01-05
  • 来自专栏Fundebug

    JavaScript深入浅出第2课:函数是一等公民是什么意思呢?

    在其他的一些First-class function的定义中,还要求函数可以保存到其他数据结构,比如数组和对象中,这一点JavaScript也是支持的。 In computer science, a programming language is said to have first-class functions if it treats functions  as first-class citizens. First-class functions are a necessity for the functional programming style, in which the use of higher-order First-class functions in Java 8 《聊聊我的第一篇10万+,同时反驳某些评论》 关于Fundebug Fundebug专注于JavaScript、微信小程序、微信小游戏、支付宝小程序

    98230发布于 2019-06-25
  • 来自专栏机器之心

    教程 | 如何使用TensorFlow中的高级API:Estimator、Experiment和Dataset

    我们可以这样构建一个评估器: return tf.estimator.Estimator( model_fn=model_fn, # First-class function params tf.contrib.learn.Experiment( estimator=estimator, # Estimator train_input_fn=train_input_fn, # First-class function eval_input_fn=eval_input_fn, # First-class function train_steps=params.train_steps experiment,我们就可以通过 learn_runner.run 运行它来训练和评估模型: learn_runner.run( experiment_fn=experiment_fn, # First-class function eval_input_fn=eval_input_fn, # First-class function train_steps=params.train_steps

    3.9K70发布于 2018-05-08
  • Rust 官方周报 385 期(2021-04-07)

    被集成在 Servo 浏览器,主要为 JS 层应用) 使用 Rust + Lunatic 构建具备 WebAssembly 的 TelNet 聊天服务器 Firefox 中消除数据竞争 - 技术报告 一级(first-class )IO(译注:一级(first-class)IO,即执行 I/O 的函数,可作为参数或返回值在程序中传递,如 File。 或许 first-class 不翻更好理解) 当前程序打包发布人的安全噩梦 对请求排序,以加速 I/O 关于 Rust 中已检查异常(checked exception)的短文 离奇的架构设计,从开始就不要支持

    66620编辑于 2022-06-30
  • 来自专栏Vue中文社区

    Vite 2.0 正式发布!

    Rollup 完成这项工作,而在2.0中,它现在使用 esbuild,从而使依赖性预绑定的速度提高了「10-100」倍 作为参考,React Meterial 用户界面以前需要28秒,现在需要约1.5秒 First-class CSS Support 将 CSS 视为module的First-class,并支持以下开箱即用的功能: Resolver enhancement 增强了 CSS 中的路径,以尊重别名和 npm 依赖

    1.1K30发布于 2021-02-26
  • 来自专栏自译文章/自学记录

    解释JavaScript中的闭包

    First-class functions 就像我在“Why JavaScript is AWESOME”中解释的那样,JavaScript的强大之处的一部分来自于它的’first-class functions 那么编程语言中的’first-class‘意味着什么?

    1.3K20发布于 2019-08-26
  • 来自专栏云资讯小编的专栏

    Kotlin 1.1.2 发布

    Java 更简洁,通过支持 variable type inference,higher-order functions (closures),extension functions,mixins and first-class

    80100发布于 2017-04-27
  • 来自专栏亨利笔记

    VMware发布两大产品预览:Bonneville和AppCatalyst

    As we noted then, our mission is clear: to make the developer a first-class user of the datacenter. Bonneville and building on our April announcements are all part our broader plan to make developers first-class

    53610发布于 2019-04-12
  • 来自专栏IT派

    TensorFlow中的那些高级API

    我们可以像下面这段代码创建一个Estimator: return tf.estimator.Estimator( model_fn=model_fn, # First-class function tf.contrib.learn.Experiment( estimator=estimator, # Estimator train_input_fn=train_input_fn, # First-class function eval_input_fn=eval_input_fn, # First-class function train_steps=params.train_steps experiment,我们就可以像下面这段代码那样使用learn_runner.run来运行它训练和评估模型: learn_runner.run( experiment_fn=experiment_fn, # First-class

    1.7K50发布于 2018-03-28
  • 来自专栏Android技术分享

    Jetpack路由组件学习:深入理解功能强大的Navigation架构之接管系统的返回操作

    NonNull Context context) { super.onAttach(context); // TODO This feature should probably be a first-class Context context) { super.onAttach(context); // TODO This feature should probably be a first-class 从注释中,可以看出,setPrimaryNavigationFragment()虽然很不起眼,它即将升级为Fragment的一类公民了(first-class)。 2.

    1.6K30发布于 2021-08-05
  • 来自专栏云原生应用工坊

    Modern Software Development: Architecture Paradigms Design And Cloud-Native

    Core principles of FP such as first-class functions and higher-order functions are gaining importance Functional Programming (FP) Core Concepts: First-Class Functions: Functions treated as first-class citizens

    55210编辑于 2023-12-07
  • 来自专栏静心物语313的Coding

    markdown123

    Built exclusively for Markdown Enjoy first-class Markdown support with easy access to Markdown syntax

    71510发布于 2020-03-24
  • 来自专栏前端说吧

    三级侧边栏-树形菜单案例效果

    1

    2
      3 <li class="first-class-li 0.5s; 59 } 60 61 .cur > a { 62 color: #fff; 63 } 64 65 .red > a { 66 color: red; 67 } 68 69 .<em>first-class</em> :这次遇到用 “is()” 函数判断列表是否展开,但是未知原因不起效果,所以用了content.clientHeight来通过高度是否已经展开 1 $(function(){ 2 $(".first-class

    5.3K50发布于 2018-05-17
  • 来自专栏木鸟杂记

    Python 中闭包概念的条分缕析

    之前工作需要,用起 Python,又遇到闭包,并且看到了一些新奇有趣的资料,这才算大致把一些字面上的概念(first-class functions,bind,scope等等)贯通在一起,反过来对闭包有了更深的理解 closure)便是一个这样牵扯了许多上下文的概念,包括编程语言最基本的绑定(binding),环境(environments),变量作用域(scope)以及函数是第一等公民(function as the first-class First-Class Function(函数是第一等公民) 一般来说,组成编程语言的元素,如变量、函数和类,会被设定不同的限制,而具有最少限制的元素,被我们称为该编程语言中的一等公民。

    81110发布于 2021-09-26
领券