Travis build: 454

This commit is contained in:
30secondsofcode
2020-04-07 17:03:51 +00:00
parent dac10fbd37
commit fb01ddce13
2 changed files with 57 additions and 63 deletions

View File

@ -162,7 +162,6 @@
"attributes": {
"text": "Casts the provided value as a list if it's not one.\n\nUse `isinstance()` to check if the given value is enumerable and return it by using `list()` or encapsulated in a list accordingly.\n\n",
"tags": [
"utility",
"list",
"beginner"
]
@ -189,11 +188,11 @@
{
"id": "check_prop",
"type": "snippetListing",
"title": "function_name",
"title": "check_prop",
"attributes": {
"text": "Given a predicate function, `fn`, and a `prop` string, this curried function will then take an object to inspect by calling the property and passing it to the predicate.\n\nReturn a `lambda` function that takes an object and applies the predicate function, `fn` to the specified property.\n\n",
"tags": [
"utility",
"function",
"intermediate"
]
},
@ -723,15 +722,15 @@
"type": "snippetListing",
"title": "group_by",
"attributes": {
"text": "Groups the elements of a list based on the given function.\n\nUse `map()` and `fn` to map the values of the list to the keys of an object.\nUse list comprehension to map each element to the appropriate `key`.\n\n",
"text": "Groups the elements of a list based on the given function.\n\nUse `map()` and `fn` to map the values of the list to the keys of a dictionary.\nUse list comprehension to map each element to the appropriate `key`.\n\n",
"tags": [
"list",
"object",
"dictionary",
"intermediate"
]
},
"meta": {
"hash": "d558526c1ec2887f13bb16fd5184a9b98f2a7a76907b191278f5e58e8703846e"
"hash": "024b31b493db85088428a449af3124901063e8507d76c7b36c898d5cd09bb9d6"
}
},
{
@ -1013,7 +1012,7 @@
"attributes": {
"text": "Returns a flat list of all the keys in a flat dictionary.\n\nUse `dict.keys()` to return the keys in the given dictionary.\nReturn a `list()` of the previous result.\n\n",
"tags": [
"object",
"dictionary",
"list",
"beginner"
]
@ -1063,7 +1062,6 @@
"tags": [
"list",
"string",
"utility",
"intermediate"
]
},
@ -1072,18 +1070,18 @@
}
},
{
"id": "map_object",
"id": "map_dictionary",
"type": "snippetListing",
"title": "map_object",
"title": "map_dictionary",
"attributes": {
"text": "Maps the values of a list to a dictionary using a function, where the key-value pairs consist of the original value as the key and the result of the function as the value.\n\n\nUse a `for` loop to iterate over the list's values, assigning the values produced by `fn` to each key of the dictionary.\n\n",
"text": "Maps the values of a list to a dictionary using a function, where the key-value pairs consist of the original value as the key and the result of the function as the value.\n\nUse a `for` loop to iterate over the list's values, assigning the values produced by `fn` to each key of the dictionary.\n\n",
"tags": [
"list",
"intermediate"
]
},
"meta": {
"hash": "704d9dfb490d983b2be8465e241cf61360f574a22230974a38f55554b3a8e044"
"hash": "16139240bec2937cb771f0c63d0172d15e3d776efe32c8c52a03f6c8fa1db689"
}
},
{
@ -1091,15 +1089,15 @@
"type": "snippetListing",
"title": "map_values",
"attributes": {
"text": "Creates an object with the same keys as the provided object and values generated by running the provided function for each value.\n\nUse `dict.keys()` to iterate over the object's keys, assigning the values produced by `fn` to each key of a new object.\n\n",
"text": "Creates a dictionary with the same keys as the provided dictionary and values generated by running the provided function for each value.\n\nUse `dict.keys()` to iterate over the dictionary's keys, assigning the values produced by `fn` to each key of a new dictionary.\n\n",
"tags": [
"object",
"dictionary",
"function",
"intermediate"
]
},
"meta": {
"hash": "91f93e124e2f1fb9d25b62db478f91503330947a7c212dc97215dec8c4b225fe"
"hash": "bb8b57173fdb7084667db5aa6b608316b4ccf7ad8aed6a14f7bae9c5cf7e0dea"
}
},
{
@ -1406,7 +1404,6 @@
"text": "Flattens a list, by spreading its elements into a new list.\n\nLoop over elements, use `list.extend()` if the element is a list, `list.append()` otherwise.\n\n",
"tags": [
"list",
"utility",
"intermediate"
]
},
@ -1591,7 +1588,7 @@
"attributes": {
"text": "Returns a flat list of all the values in a flat dictionary.\n\nUse `dict.values()` to return the values in the given dictionary.\nReturn a `list()` of the previous result.\n\n",
"tags": [
"object",
"dictionary",
"list",
"beginner"
]